Skip to content

Commit 2d9a902

Browse files
committed
set seed via keyword
1 parent 81ec4e2 commit 2d9a902

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/runtests.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ h = LightGraphs.WheelGraph(10)
3737

3838
# plot and save function for visual regression tests
3939
function plot_and_save(fname, g; gplot_kwargs...)
40-
Random.seed!(2017)
41-
draw(PNG(fname, 8inch, 8inch), gplot(g; gplot_kwargs...))
40+
draw(PNG(fname, 8inch, 8inch), gplot(g; seed=2017, gplot_kwargs...))
4241
end
4342

4443
@testset "Karate Net" begin

0 commit comments

Comments
 (0)