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

Use a RNG independent of machine, OS, endianness, etc #15

Closed
whitequark opened this issue Jun 11, 2016 · 2 comments
Closed

Use a RNG independent of machine, OS, endianness, etc #15

whitequark opened this issue Jun 11, 2016 · 2 comments

Comments

@whitequark
Copy link
Collaborator

Instead of libc rand().

@cliffordwolf
Copy link

There's a "replace with something a bit more random!" TODO comment at 69bbfee#diff-b579c079e629248e4673f0d09231a2f2R46.

May I suggest xorshift, xorshift*, or xorshift+? Comparable (xorshift) or better (xorshift*, xorshift+) randomness than Mersenne Twister, but simpler coder and much faster.

Sorry, something went wrong.

@cliffordwolf
Copy link

^^ Ignore this. I've just seen Robert did already replace it with PCG.

Sorry, something went wrong.

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