Skip to content

Commit 6e48e07

Browse files
carlobaldassitimholy
authored andcommitted
fix srand->seed! deprecation warning (#221)
1 parent 2abddc7 commit 6e48e07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/scaling/nointerp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ end
2323
@test length(gradient(sitp, pi/3, 2)) == 1
2424

2525
# check for case where initial/middle indices are NoInterp but later ones are <:BSpline
26-
srand(1234)
26+
isdefined(Random, :seed!) ? Random.seed!(1234) : srand(1234) # `srand` was renamed to `seed!`
2727
z0 = rand(10,10)
2828
za = copy(z0)
2929
zb = copy(z0')

0 commit comments

Comments
 (0)