Skip to content

Commit

Permalink
Jive 0.2.16, fix Random.seed!
Browse files Browse the repository at this point in the history
  • Loading branch information
wookay committed Jun 4, 2021
1 parent 280c996 commit e110f58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ keywords = ["distributed", "test"]
license = "MIT"
desc = "some useful steps in tests"
authors = ["WooKyoung Noh <[email protected]>"]
version = "0.2.15"
version = "0.2.16"

[deps]
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
Expand Down
6 changes: 5 additions & 1 deletion src/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,11 @@ function jive_testset_beginend(io, numbering, subpath, msg::Union{String,Expr},
local elapsedtime0 = time_ns()
try
# RNG is re-seeded with its own seed to ease reproduce a failed test
Random.seed!(RNG.seed)
if VERSION >= v"1.7.0-DEV.1225"
Random.seed!(Random.GLOBAL_SEED)
else
Random.seed!(RNG.seed)
end
let
$(esc(tests))
end
Expand Down

0 comments on commit e110f58

Please sign in to comment.