11using Test
2- using Random : Xoshiro
2+ using StableRNGs : StableRNG
33using LinearAlgebra: norm, eigvals
44import SparseArrays
55
@@ -19,7 +19,7 @@ relerr(a, b) = abs(a - b) / max(abs(a), abs(b))
1919 @test H isa Matrix{Float64}
2020 @test size (H) == (N, N)
2121
22- rng = Xoshiro (3405091510 )
22+ rng = StableRNG (3405091510 )
2323
2424 ρ = 1.0
2525 H = random_matrix (N; hermitian= true , complex= false , rng)
5050 @test H isa Matrix{ComplexF64}
5151 @test size (H) == (N, N)
5252
53- rng = Xoshiro (3727996169 )
53+ rng = StableRNG (3727996169 )
5454
5555 ρ = 1.0
5656 H = random_matrix (N; hermitian= true , rng)
8181 @test H isa SparseArrays. SparseMatrixCSC{Float64,Int64}
8282 @test size (H) == (N, N)
8383
84- rng = Xoshiro (1572573603 )
84+ rng = StableRNG (1572573603 )
8585
8686 ρ = 1.0
8787 d = 0.5
118118 @test H isa SparseArrays. SparseMatrixCSC{ComplexF64,Int64}
119119 @test size (H) == (N, N)
120120
121- rng = Xoshiro (3677556226 )
121+ rng = StableRNG (3677556226 )
122122
123123 ρ = 1.0
124124 d = 0.5
155155 @test H isa Matrix{Float64}
156156 @test size (H) == (N, N)
157157
158- rng = Xoshiro ( 940283801 )
158+ rng = StableRNG ( 1582783931 )
159159
160160 ρ = 1.0
161161 H = random_matrix (N; complex= false , rng)
177177 @test maximum (imag .(H)) > 0.0
178178 @test size (H) == (N, N)
179179
180- rng = Xoshiro (2137585613 )
180+ rng = StableRNG (2137585613 )
181181
182182 ρ = 1.0
183183 H = random_matrix (N; rng)
198198 @test H isa SparseArrays. SparseMatrixCSC{Float64,Int64}
199199 @test size (H) == (N, N)
200200
201- rng = Xoshiro (1710562897 )
201+ rng = StableRNG (1710562897 )
202202
203203 ρ = 1.0
204204 d = 0.5
236236 @test maximum (imag .(H)) > 0.0
237237 @test size (H) == (N, N)
238238
239- rng = Xoshiro (2799774491 )
239+ rng = StableRNG (2799774491 )
240240
241241 ρ = 1.0
242242 d = 0.5
0 commit comments