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

PCG extension mechanism #7

Open
pitdicker opened this issue Dec 29, 2017 · 2 comments
Open

PCG extension mechanism #7

pitdicker opened this issue Dec 29, 2017 · 2 comments

Comments

@pitdicker
Copy link

About a month ago I started implementing the PCG extension mechanism in a repository where I compare small RNG's. But when I realized how complex it was it did not seem like a good fit.

I you are still interested in working on the extension mechanism, it may be a good starting point:
https://github.com/pitdicker/small-rngs/blob/master/src/pcg_ext.rs
And an overview of how I think it is supposed to work: dhardy/rand#52 (comment)

@pitdicker
Copy link
Author

And the C++ code this translates (the necessary functions extracted from PCG): gist

@robojeb
Copy link
Owner

robojeb commented Aug 1, 2018

@pitdicker Sorry for being a bad maintainer, I have implemented extended generators now.

They are based on some of the code from C++, though because we don't have const-generics we are limited to just a small set of sizes.

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

No branches or pull requests

2 participants