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 a parallelizable PRNG #136

Open
edre opened this issue Nov 8, 2016 · 3 comments
Open

Add a parallelizable PRNG #136

edre opened this issue Nov 8, 2016 · 3 comments

Comments

@edre
Copy link
Contributor

edre commented Nov 8, 2016

It would be simple to write a seedable PRNG as a rayon Producer, at least with LCGs that support efficient skipping. Any user that does not care about determinism should probably stick with rand::thread_rng, which shouldn't have any concurrency bottlenecks.

A basic implementation would only emit u32s, but users may want other types or distributions, and incorporating those into the API would be more complicated.

@svenstaro
Copy link

Isn't this done as of #571?

@edre
Copy link
Contributor Author

edre commented Jul 24, 2018

This issue is about a deterministic random Producer, which is different from the internal non-deterministic rng from #571.

@svenstaro
Copy link

You're right, I misread at first.

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

No branches or pull requests

3 participants