-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add shuffle
implementation to preserve stability
#17
Conversation
Welcome to Codecov 🎉Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment. Thanks for integrating Codecov - We've got you covered ☂️ |
Alright, CI passing here! It is failing on main on nightly as discussed in #10 |
@@ -132,5 +139,20 @@ for T in Base.BitInteger_types | |||
SamplerRangeFast(r) | |||
end | |||
|
|||
# https://github.com/JuliaRandom/StableRNGs.jl/issues/10 | |||
Random.shuffle(r::StableRNG, a::AbstractArray) = Random.shuffle!(r, Base.copymutable(a)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this one necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure, but I would prefer to keep it, in case it becomes necessary. It doesn't seem harmful either.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@rfourquet would this deserve a new release? |
It got one: JuliaRegistries/General#96886 |
My bad, I just checked out the repo tags and the last one is from 2020. Probably because TagBot is not installed? |
Thanks for noticing @gdalle, I've fixed this and made a PR to add TagBot (#21). |
xref #10