On 2015-11-25 9:33 AM, Frederik Braun wrote:
On 25.11.2015 12:42, Philip Chee wrote:
<https://medium.com/@betable/tifu-by-using-math-random-f1c308c4fd9d#.ui74puy9k>
Hopefully Spidermonkey's Math.random() is better.
Phil
There have been multiple insightful responses on HN and reddit/netsec.
The short version is, that Math.random() isn't providing statistically
good randomness, because JS benchmarks use it. So it has been optimized
for performance in most browsers.
That article's key takeaway is that the word "performance" doesn't
really mean anything absent a bunch of context-specific qualifiers, and
you're going to get bitten if you don't understand them. Doing the wrong
thing really fast is not hard.
- mhoye
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform