Skip to content

Commit 59a751e

Browse files
committed
Fix unimplemented Xoshiro RNG in 1.6
1 parent 4310eca commit 59a751e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_optim.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using DynamicExpressions, Optim, Zygote
2-
using Random: Xoshiro
2+
using Random: MersenneTwister as RNG
33

44
operators = OperatorEnum(; binary_operators=(+, -, *, /), unary_operators=(exp,))
55
x1, x2 = (i -> Node(Float64; feature=i)).(1:2)
66

7-
X = rand(Xoshiro(0), Float64, 2, 100)
7+
X = rand(RNG(0), Float64, 2, 100)
88
y = @. exp(X[1, :] * 2.1 - 0.9) + X[2, :] * -0.9
99

1010
original_tree = exp(x1 * 0.8 - 0.0) + 5.2 * x2

0 commit comments

Comments
 (0)