Skip to content

Commit be6b0d4

Browse files
committed
fix a few more v0.7 deprecations
1 parent 63a6972 commit be6b0d4

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

REQUIRE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
julia 0.7-alpha
1+
julia 0.7-rc2

src/StaticArrays.jl

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
__precompile__()
2-
31
module StaticArrays
42

53
import Base: @_inline_meta, @_propagate_inbounds_meta, @_pure_meta, @propagate_inbounds, @pure

test/qr.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Base.randn(::Type{Int}, I::Integer) = [randn(Int) for i=1:I]
77
Base.randn(::Type{Complex{T}}) where T = Complex{T}(randn(T,2)...)
88
Base.randn(::Type{Complex}) = randn(Complex{Float64})
99

10-
srand(42)
10+
Random.seed!(42)
1111
@testset "QR decomposition" begin
1212
function test_qr(arr)
1313

test/runtests.jl

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ using InteractiveUtils
44
# We generate a lot of matrices using rand(), but unit tests should be
55
# deterministic. Therefore seed the RNG here (and further down, to avoid test
66
# file order dependence)
7-
srand(42)
7+
Random.seed!(42)
88

99
include("testutil.jl")
1010
include("SVector.jl")
@@ -23,23 +23,23 @@ include("custom_types.jl")
2323
include("core.jl")
2424
include("abstractarray.jl")
2525
include("indexing.jl")
26-
srand(42); include("mapreduce.jl")
27-
srand(42); include("arraymath.jl")
26+
Random.seed!(42); include("mapreduce.jl")
27+
Random.seed!(42); include("arraymath.jl")
2828
include("broadcast.jl")
2929
include("linalg.jl")
30-
srand(42); include("matrix_multiply.jl")
31-
srand(42); include("triangular.jl")
30+
Random.seed!(42); include("matrix_multiply.jl")
31+
Random.seed!(42); include("triangular.jl")
3232
include("det.jl")
3333
include("inv.jl")
34-
srand(42); include("solve.jl")
35-
srand(44); include("eigen.jl")
34+
Random.seed!(42); include("solve.jl")
35+
Random.seed!(44); include("eigen.jl")
3636
include("expm.jl")
3737
include("sqrtm.jl")
3838
include("lyap.jl")
3939
include("lu.jl")
40-
srand(42); include("qr.jl")
41-
srand(42); include("chol.jl") # hermitian_type(::Type{Any}) for block algorithm
40+
Random.seed!(42); include("qr.jl")
41+
Random.seed!(42); include("chol.jl") # hermitian_type(::Type{Any}) for block algorithm
4242
include("deque.jl")
4343
include("io.jl")
4444
include("svd.jl")
45-
srand(42); include("fixed_size_arrays.jl")
45+
Random.seed!(42); include("fixed_size_arrays.jl")

0 commit comments

Comments
 (0)