From d751276020f147e4193dadfc9faee38451ac7def Mon Sep 17 00:00:00 2001 From: Andreas Noack Date: Wed, 22 Aug 2018 08:27:12 +0200 Subject: [PATCH] Use Random.seed! instead of srand --- test/runtests.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 2321a12..89e07ba 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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) @@ -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) @@ -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)