Skip to content

Commit 0343177

Browse files
committed
fix valid random seed in tests
1 parent 81b00fa commit 0343177

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ using LazySets
4141

4242
# fix seed of random number generator (for reproducibility)
4343
using Random
44-
seed = rand(Int)
44+
seed = max(abs(rand(Int)), 0)
4545
println("using random seed $seed")
4646
Random.seed!(seed)
4747

0 commit comments

Comments
 (0)