Skip to content

Commit c6c3997

Browse files
nsajkorfourquet
andcommitted
relax one-arg method
Co-authored-by: Rafael Fourquet <[email protected]>
1 parent 18ededb commit c6c3997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/Random/src/misc.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ julia> shuffle(Xoshiro(123), Vector(1:10))
290290
function shuffle end
291291

292292
shuffle(r::AbstractRNG, a::AbstractArray) = shuffle!(r, copymutable(a))
293-
shuffle(a::AbstractArray) = shuffle(default_rng(), a)
293+
shuffle(a::Union{Tuple, AbstractArray}) = shuffle(default_rng(), a)
294294

295295
shuffle(r::AbstractRNG, a::Base.OneTo) = randperm(r, last(a))
296296

0 commit comments

Comments
 (0)