-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
ENH: Add the capability to swap the singleton bit generator #21976
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
Conversation
@rkern A first attempt at an API for this. I followed the |
Random failure. |
This doesn't work because the C pointer from the capsule isn't changed when the Python attribute |
011189c
to
affb903
Compare
@rkern thanks - I thought it was a property and didn't check (it once was). Added a cdef method to allow it to be set. |
a148eeb
to
0c21d8f
Compare
This seems like a reasonable thing to add. Is there anything to add around recommended best practices in the general numpy.random documentation? |
493d031
to
a36d5ff
Compare
cc: @emcastillo @kmaehashi for vis |
Needs rebase. |
Add a new version or seed that supports seeding any bit gen Add set/get_bit_generator as explicity methodds to support swapping closes numpy#21808
Fix typos and wrap length
Co-authored-by: Matti Picus <matti.picus@gmail.com>
b5ac4da
to
69530cf
Compare
@charris rebased and green. |
Let's give this a shot. Thanks Kevin. |
Add a new version or seed that supports seeding any bit gen
Add set/get_bit_generator as explicity methodds to support swapping
closes #21808