3 ms·
The seed array is an internal state of the PRNG algorithm. It evolves over time and PRNG uses values from this array (plus some additional parameters, such as i
by lowleveldesign 8y ago
The seed array is an internal state of the PRNG algorithm. It evolves over time and PRNG uses values from this array (plus some additional parameters, such as inext or inextp) to generate new "random" numbers. Thus, after seeding, there is no real randomness in the non-cryptographic PRNGs. To learn more, have a look at Marsenne Twister, which is also quite popular and has a nice description in Wikipedia [1].
[1] https://en.wikipedia.org/wiki/Mersenne_Twister https://en.wikipedia.org/wiki/Mersenne_Twister
- Insanity 8y agoThanks for the link! I kind of figured it out over time, but the explanation helps! And thanks for the interesting article btw, just realised you're the author :-)
- lowleveldesign 8y agoThanks :)