Skip to content

Commit 414cd7a

Browse files
author
Pawel Latawiec
committed
Use explicit rng in test
1 parent b4c170d commit 414cd7a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/lalqmr.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ using SparseArrays
1010
#LALQMR
1111
@testset "LALQMR" begin
1212

13-
Random.seed!(1234321)
13+
rng = Random.Xoshiro(123)
1414
n = 10
1515

1616
@testset "Matrix{$T}" for T in (Float32, Float64, ComplexF32, ComplexF64)
17-
A = rand(T, n, n)
18-
b = rand(T, n)
17+
A = rand(rng, T, n, n)
18+
b = rand(rng, T, n)
1919
F = lu(A)
2020
reltol = eps(real(T))
2121

@@ -34,8 +34,8 @@ n = 10
3434
end
3535

3636
@testset "SparseMatrixCSC{$T, $Ti}" for T in (Float64, ComplexF64), Ti in (Int64, Int32)
37-
A = sprand(T, n, n, 0.5) + I
38-
b = rand(T, n)
37+
A = sprand(rng, T, n, n, 0.5) + n * I
38+
b = rand(rng, T, n)
3939
F = lu(A)
4040
reltol = eps(real(T))
4141

0 commit comments

Comments
 (0)