-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Allow pluggable PRNG implementations #5081
Comments
This sounds fun... For backward compatibility, do you think it might make sense to implement this beside the current approach (e.g. with |
Or maybe better, a |
I was thinking that perhaps we would do something like |
#2294 might be related? It would allow you to make this change more transparently since no code would assume a key size; it would be hidden behind the opaque object. |
Generalizing this issue: we should allow pluggable PRNG bit generators (e.g., Philox on GPU). |
Currently we use ThreeFry2x32 as our PRNG, but it has an uncomfortably small key space (2^64).
An easy way to improve this would be to use the 4x32 variant of ThreeFry instead which has a key space of size 2^128.
The text was updated successfully, but these errors were encountered: