> I tried it myself with the program at the end of this post, and got a
> bit different of a result. The program printed:
I just found out that Windows includes a better RNG anyway, you call it with
the API function CryptGenRandom. More details here:
http://en.wikipedia.org/wiki/CryptGenRandom
It's a fair bit slower than rand(), but by making use of every bit returned
(rather than just testing the LSB) it is comparable.
Post a reply to this message
|