Skip to content

Commit 850e3c4

Browse files
committed
set julia rng
1 parent 8f66b5f commit 850e3c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/probprog/linear_regression.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ end
5555
@testset "linear_regression" begin
5656
@testset "simulate" begin
5757
seed = Reactant.to_rarray(UInt64[1, 4])
58+
Random.seed!(42) # For Julia side RNG
5859

5960
xs = [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0]
6061
xs_r = Reactant.to_rarray(xs)
@@ -74,4 +75,4 @@ end
7475

7576
@show slope, intercept
7677
end
77-
end
78+
end

0 commit comments

Comments
 (0)