Skip to content

Commit 31c40fd

Browse files
committed
Fix srand deprecation
1 parent 0c47e18 commit 31c40fd

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ environment:
22
matrix:
33
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
44
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
5-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.7/julia-0.7.0-beta2-win32.exe"
6-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.7/julia-0.7.0-beta2-win64.exe"
5+
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.7/julia-0.7-latest-win32.exe"
6+
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.7/julia-0.7-latest-win64.exe"
77

88
branches:
99
only:

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)