Hacker GitHub

← All repos

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

Mentions per year 4 mentions · busiest year 2014 (2)
20082026
  1. Replace Math.random() with your deterministic PRNG, for example https://github.com/davidbau/seedrandom
  2. …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…
  3. …it's not currently possible. You'd have to replace the Math.random calls with something like this: https://github.com/davidbau/seedrandom