Skip to content

Commit

Permalink
Use Random.seed! instead of srand
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasnoack committed Aug 22, 2018
1 parent bdaafc9 commit d751276
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ end

@testset "HSV" begin
# issue 37
srand(42)
Random.seed!(42)
img = rand(HSV{Float32}, 8, 10)
out_name = joinpath(mydir, "hsv.png")
save(out_name, img)
Expand All @@ -267,7 +267,7 @@ end
end

@testset "HSL" begin
srand(42)
Random.seed!(42)
img = rand(HSL{Float32}, 8, 10)
out_name = joinpath(mydir, "hsl.png")
save(out_name, img)
Expand All @@ -278,7 +278,7 @@ end
end

@testset "Lab" begin
srand(42)
Random.seed!(42)
img = rand(Lab{Float32}, 8, 10)
out_name = joinpath(mydir, "Lab.png")
save(out_name, img)
Expand Down

0 comments on commit d751276

Please sign in to comment.