Odin
Odin copied to clipboard
Change Default PRNG
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 :)