Skip to content

Commit

Permalink
commit suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Rafael Fourquet <fourquet.rafael@gmail.com>
  • Loading branch information
Tortar and rfourquet authored Oct 6, 2023
1 parent 1371b79 commit 8052494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/Random/src/generation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ function rand(rng::AbstractRNG, sp::SamplerSimple{<:Dict,<:Sampler})
end
end

rand(rng::AbstractRNG, sp::SamplerTrivial{<:Base.KeySet{<:T,<:Dict}} where T) =
rand(rng::AbstractRNG, sp::SamplerTrivial{<:Base.KeySet{<:Any,<:Dict}}) =
rand(rng, sp[].dict).first

rand(rng::AbstractRNG, sp::SamplerTrivial{<:Base.ValueIterator{<:Dict}}) =
Expand Down

0 comments on commit 8052494

Please sign in to comment.