davidbau/seedrandom
View on GitHub ↗ ★ 2,131 JavaScript
seeded random number generator for Javascript
4 mentions on Hacker News by 4 people: 1 story, 3 comments · first 2014-05-11 · latest 2018-03-14
20082026
-
Replace Math.random() with your deterministic PRNG, for example https://github.com/davidbau/seedrandom
comment by dvh · 2018-03-14 · in Show HN: RoughJS – Create hand-drawn graphics using JavaScript -
…hacker didn't add a payload to overwrite Math.seedrandom to always use the same seed. The fact that https://github.com/davidbau/seedrandom isn't cryptographically secure should've been enough to turn you away and warn other. And if you…
comment by zawerf · 2018-01-29 · in How a malicious seed generation website stole $4M -
…it's not currently possible. You'd have to replace the Math.random calls with something like this: https://github.com/davidbau/seedrandom
comment by tstrimple · 2014-05-31 · in RandomColor – a color generator for JavaScript