3 ms·
Randomness in the Web Browser (2015)
- moritzwarhier 3y agoInteresting to revisit. Have there been more changes to Math.random() since 2015 when this bug was fixed? https://jandemooij.nl/blog/math-random-and-32-bit-precision/ https://jandemooij.nl/blog/math-random-and-32-bit-precision/ https://trac.webkit.org/changeset/192855/webkit https://trac.webkit.org/changeset/192855/webkit This StackExchange answer provides a good writeup, especially about some added requirements for Math.random() from ES6: https://security.stackexchange.com/questions/84906/predicting-math-random-numbers/110241#110241 https://security.stackexchange.com/questions/84906/predictin... Are the 3 major browsers still all using xorshift128? I don't have the capacity to quickly figure this out from public source code.