3 ms·
32bits of randomness seems like plenty for most applications, and if you need more than that you should really specify that explicitly. If it speeds up Math.Ra
by alwaysdoit 12y ago
32bits of randomness seems like plenty for most applications, and if you need more than that you should really specify that explicitly. If it speeds up Math.Random() for 90% of uses that seems like a reasonable optimization to me.
- pseudosavant 12y agoFWIW, it wasn't enough randomness for me. I was seeing collisions in some trivial code in Chrome that worked fine in every single other browser. It's not like Chrome's Math.random performance is significantly better than other modern browsers.