Skip to content

Commit 68cd04c

Browse files
committed
fix rand! for Dict, which used GLOBAL_RNG incorrectly
1 parent 09ea9b4 commit 68cd04c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/containers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rand!(A::AbstractDict{K,V}, dist::Distribution{<:Pair}=Combine(Pair, K, V)) wher
88

99
rand!(rng::AbstractRNG, A::AbstractDict{K,V},
1010
dist::Distribution{<:Pair}=Combine(Pair, K, V)) where {K,V} =
11-
rand!(GLOBAL_RNG, A, Sampler(rng, dist))
11+
rand!(rng, A, Sampler(rng, dist))
1212

1313
function _rand!(rng::AbstractRNG, A::Union{AbstractDict,AbstractSet}, n::Integer, sp::Sampler)
1414
empty!(A)

0 commit comments

Comments
 (0)