We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ae1b00 commit 601bc33Copy full SHA for 601bc33
1 file changed
src/containers.jl
@@ -97,13 +97,13 @@ end
97
const BitArrays = Union{BitArray,BitVector,BitMatrix}
98
99
rand(r::AbstractRNG, ::Type{T}, dims::Dims) where {T<:BitArrays} =
100
- rand!(r, T(uninitialized, dims))
+ rand!(r, T(undef, dims))
101
102
rand(r::AbstractRNG, ::Type{T}, dims::Integer...) where {T<:BitArrays} =
103
- rand!(r, T(uninitialized, convert(Dims, dims)))
+ rand!(r, T(undef, convert(Dims, dims)))
104
105
rand(::Type{T}, dims::Dims) where {T<:BitArrays} =
106
- rand!(T(uninitialized, dims))
+ rand!(T(undef, dims))
107
108
rand(::Type{T}, dims::Integer...) where {T<:BitArrays} =
109
- rand!(T(uninitialized, convert(Dims, dims)))
+ rand!(T(undef, convert(Dims, dims)))
0 commit comments