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:
Dan Kortschak
2025-03-26 10:07:34 +10:30
parent 7826ba4358
commit e62ddf595a

View File

@@ -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)))