Skip to content

Commit a7afbe7

Browse files
committed
Fix srand deprecation
1 parent 0c47e18 commit a7afbe7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/test_bcast.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ end
1919

2020
root = 0
2121

22-
Random.seed!(17)
22+
if VERSION >= v"0.7.0-rc1"
23+
Random.seed!(17)
24+
else
25+
srand(17)
26+
end
2327

2428
matsize = (17,17)
2529
for typ in Base.uniontypes(MPI.MPIDatatype)

0 commit comments

Comments
 (0)