|
From: Nils T. <ni...@op...> - 2015-11-23 18:25:55
|
Hi In case you haven't stumbled upon this yet, here's a recommended read. Yet another story about how easy it is to get randomness wrong: https://medium.com/@betable/tifu-by-using-math-random-f1c308c4fd9d Of course Math.random() is not intended to be crypto-grade ('unguessable'). But one would still expect a reasonably low likelihood of collisions. Google's V8 fails pretty spectacularly in this respect. See yourself. If you see patters (e.g. stripes) appearing after a while, then Math.random() in your JS engine is poor: http://bl.ocks.org/mmalone/bf59aa2e44c44dde78ac /n |