Skip to content
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

Merged
merged 9 commits into from
Dec 11, 2023

Conversation

ericphanson
Copy link
Collaborator

xref #10

@ericphanson ericphanson mentioned this pull request Dec 7, 2023
Copy link

codecov bot commented Dec 7, 2023

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 ☂️

@ericphanson
Copy link
Collaborator Author

Alright, CI passing here! It is failing on main on nightly as discussed in #10

@ericphanson ericphanson mentioned this pull request Dec 8, 2023
@@ -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))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this one necessary?

Copy link
Collaborator Author

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.

Copy link
Member

@rfourquet rfourquet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@rfourquet rfourquet merged commit 4d02c43 into JuliaRandom:master Dec 11, 2023
57 checks passed
@ericphanson ericphanson deleted the eph/shuffle-impl branch December 11, 2023 14:40
@gdalle
Copy link

gdalle commented Jan 15, 2024

@rfourquet would this deserve a new release?

@ericphanson
Copy link
Collaborator Author

It got one: JuliaRegistries/General#96886

@gdalle
Copy link

gdalle commented Jan 15, 2024

My bad, I just checked out the repo tags and the last one is from 2020. Probably because TagBot is not installed?

@rfourquet
Copy link
Member

Thanks for noticing @gdalle, I've fixed this and made a PR to add TagBot (#21).
@ericphanson I invited you to the repo, hoping you don't mind!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants