Skip to content

Commit ca0dc9c

Browse files
committed
Make sure to seed the GPUArrays RNG during tests.
1 parent 7c0c490 commit ca0dc9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/testsuite/random.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ function test_random(AT)
1313
rng = GPUArrays.global_rng(A)
1414
Random.seed!(rng)
1515
Random.seed!(rng, 1)
16-
rand!(A)
16+
rand!(rng, A)
1717
Random.seed!(rng, 1)
18-
rand!(B)
18+
rand!(rng, B)
1919
@test all(A .== B)
2020
end
2121
end

0 commit comments

Comments
 (0)