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 random number generator #369

Merged
merged 4 commits into from
May 27, 2021
Merged

PCG random number generator #369

merged 4 commits into from
May 27, 2021

Conversation

mlund
Copy link
Owner

@mlund mlund commented May 25, 2021

This is an optional drop-in replacement for C++'s Mersenne Twister. See https://www.pcg-random.org/ for more information.

This is an optional drop-in replacement for C++'s Mersenne
Twister. See https://www.pcg-random.org/ for more information.
@mlund mlund added this to the Version 2.5.0 milestone May 25, 2021
@SHervoe-Hansen SHervoe-Hansen requested review from SHervoe-Hansen and removed request for SHervoe-Hansen May 26, 2021 11:27
Copy link
Collaborator

@SHervoe-Hansen SHervoe-Hansen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PCG RNG looks amazing from the material linked in the PR.

However given that in mind I think we should set the value to default and perhaps also update the documentation in case one attempts to reproduce results given a specific RNG.

Furthermore multiple tests returned
could not initialize random engine - falling back to fixed seed.
Is this related to the PCG?

@mlund mlund changed the title Add support for PCG random number generator PCG random number generator May 27, 2021
@mlund
Copy link
Owner Author

mlund commented May 27, 2021

Furthermore multiple tests returned
could not initialize random engine - falling back to fixed seed.
Is this related to the PCG?

Yes, the state is specific to the engine, but I think the message explanation is OK'ish. If we set PCG to default we should update (or remove) the state-info from the state files.

@mlund mlund merged commit 4cc9e5a into master May 27, 2021
@mlund mlund deleted the permuted_congruential_generator branch May 27, 2021 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants