Skip to content

Commit 5426eca

Browse files
mhaurupenelopeysm
andauthored
Fix the global Random.seed in runtests.jl (#2381)
Co-authored-by: Penelope Yong <[email protected]>
1 parent f6fdc91 commit 5426eca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/runtests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
include("test_utils/SelectiveTests.jl")
22
using .SelectiveTests: isincluded, parse_args
33
using Pkg
4+
using Random: seed!
45
using Test
56
using TimerOutputs: TimerOutputs, @timeit
67
import Turing
78

9+
# Fix the global Random.seed for reproducibility.
10+
seed!(23)
11+
812
include(pkgdir(Turing) * "/test/test_utils/models.jl")
913
include(pkgdir(Turing) * "/test/test_utils/numerical_tests.jl")
1014
include(pkgdir(Turing) * "/test/test_utils/ad_utils.jl")

0 commit comments

Comments
 (0)