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

our PRNG sucks #58

Open
riastradh-probcomp opened this issue Sep 24, 2015 · 0 comments
Open

our PRNG sucks #58

riastradh-probcomp opened this issue Sep 24, 2015 · 0 comments
Milestone

Comments

@riastradh-probcomp
Copy link
Contributor

The Mersenne twister sucks, the seed space we use is tiny, and the /ad hack/ seed management we do makes it even more ridiculous by seeding separate MT instances with sequential integers. All of it, including all uses of boost random and numpy.random, should be replaced by a ChaCha-based PRNG with 256-bit seeds and small states.

Fortunately, most of the work to identify sources of nondeterminism has been done, and some seed parameter is passed in explicitly to every routine that makes random choices, so fixing this is a matter of macheteing your way through the mess you can see, rather than scrutinizing the whole code base to guess where it might be nondeterministic.

@raxraxraxraxrax raxraxraxraxrax added this to the analysis milestone Dec 22, 2015
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