Skip to content
This repository has been archived by the owner on Jun 19, 2021. It is now read-only.

Choose a PRNG #66

Open
LukasKalbertodt opened this issue Jul 23, 2016 · 3 comments
Open

Choose a PRNG #66

LukasKalbertodt opened this issue Jul 23, 2016 · 3 comments

Comments

@LukasKalbertodt
Copy link
Member

LukasKalbertodt commented Jul 23, 2016

To always generate the same world, even in future versions of this game, we need to stick to one pseudo random number generator. Currently we're using a xor-shift RNG. But we should discuss and finalize our decision at some point.

@jonas-schievink
Copy link
Contributor

http://www.pcg-random.org/ has very nice properties, and there's a crate. Docs are broken, use this instead: https://crates.fyi/crates/pcg_rand/0.4.1/

@jonas-schievink
Copy link
Contributor

Okay the docs are broken, cargo doc produces something more useful.

@LukasKalbertodt
Copy link
Member Author

Looks nice indeed, although we don't really need many of those properties... speed is important, I guess. So we should test the pcg-rand crate and benchmark, if that implementation holds the speed promises of the website.

@LukasKalbertodt LukasKalbertodt changed the title Choose an PRNG Choose a PRNG Jul 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants