mirror of
https://github.com/gonum/gonum.git
synced 2025-09-27 03:26:04 +08:00
lapack/testlapack: fix random source use
This replaces a use of the global rand with the intended local rnd which was missed.
This commit is contained in:
@@ -41,9 +41,9 @@ func testDlaln2(t *testing.T, impl Dlaln2er, trans bool, na, nw, extra int, rnd
|
|||||||
|
|
||||||
var w complex128
|
var w complex128
|
||||||
if nw == 1 {
|
if nw == 1 {
|
||||||
w = complex(rand.NormFloat64(), 0)
|
w = complex(rnd.NormFloat64(), 0)
|
||||||
} else {
|
} else {
|
||||||
w = complex(rand.NormFloat64(), rand.NormFloat64())
|
w = complex(rnd.NormFloat64(), rnd.NormFloat64())
|
||||||
}
|
}
|
||||||
smin := dlamchP * (math.Abs(real(w)) + math.Abs(imag(w)))
|
smin := dlamchP * (math.Abs(real(w)) + math.Abs(imag(w)))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user