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

Change Default PRNG #4214

Open
IgneousRed opened this issue Sep 8, 2024 · 1 comment
Open

Change Default PRNG #4214

IgneousRed opened this issue Sep 8, 2024 · 1 comment

Comments

@IgneousRed
Copy link

IgneousRed commented Sep 8, 2024

Some time ago I mentioned in the discord server about how bad the default PRNG is.

It is inspired by PCG, but I could not find the exact copy.
If it exists I would like to see it, but I don't think the creator made this one.

Testing with one of the best libraries, it fails quickly.
The PRNG fails after 2^19 bytes on the most stringent test.
I would not recommend any 64bit PRNG that fails before 2^45 bytes.

Better alternatives exist, in randomness, predictability and speed at the same time.
I would recommend MWCP64, I think it is a great choice for Odin (for modern hardware).

For more info, I made a repository with relevant data.
https://github.com/IgneousRed/PrngBoard (Repo was private, fixed)

I would really like for my favourite language to have a good PRNG.
Feel free to ask anything :)

@JesseRMeyer
Copy link

JesseRMeyer commented Sep 8, 2024

Thanks for reporting this. We've known about it internally but haven't decided on a path forward. We'll keep the issue here to track progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants