3 ms·
I'm wondering how this piece of n00bishness is at the very top in HN. The only reason there is a perceivable diference (in the presence of patterns) is that ra
by muyuu 13y ago
I'm wondering how this piece of n00bishness is at the very top in HN.
The only reason there is a perceivable diference (in the presence of patterns) is that rand() is not very solid (it's optimised for speed, they recommend mt_rand() where a stronger generator is needed, and you can still do much better).
PHP's mt_srand is a Mersenne Twister, which is pretty good http://en.wikipedia.org/wiki/Mersenne_twister http://en.wikipedia.org/wiki/Mersenne_twister
- heyitsnick 13y agoThat's exactly what the article says.
- muyuu 13y agoIt does now. It didn't when I posted that. Or I might have missed it before? Still, tries to sell "pseudo" vs "true" as if this image showed the difference.
- dkokelley 13y ago> I'm wondering how this piece of n00bishness is at the very top in HN. Probably because it was interesting enough to stand out against the NSA/PRISM articles that have dominated the front page for the past few days. Also, was the term 'n00bishness' necessary? I don't see any cause for attacking the author.