Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I suppose that's true, though if someone can intuit a crypto-strong PRNG then that's an interesting and significant result in itself.


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.


I'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


Sure, but when it's only being used to pick from between to picture sets, maybe it's not as impossible as it would seem.


It seems pretty impossible. Unless you're using a horribly flawed PRNG, patterns in the data should require analysis much deeper than human intuition could manage. This analysis would also probably require much more information than you would get from this experiment.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: