3 ms·
Javascript random() isn't a crypto-strong PRNG. Depending on how any PRNG is seeded, guessing it's output may not be very hard at all - especially if you've see
by nl 16y ago
Javascript random() isn't a crypto-strong PRNG. Depending on how any PRNG is seeded, guessing it's output may not be very hard at all - especially if you've seen it once before.
Eg, I once had a Poker playing game on an Amstrad that used a PRNG with a very predicable seeding strategy. I could amaze my friends by knowing exactly what cards I would be dealt.
- endtime 16y agoI'm not suggesting that JS's random() is crypto-strong. I was replying to this part: >I think you need a true random number generator to truly test this