unpredictableSeed

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Sun Mar 3 05:33:47 PST 2013


On 03/03/2013 12:41 PM, jerro wrote:
> You can solve this by using /dev/urandom instead, as Jerome have said already.

Yes, but this is less trustworthy from a randomness point of view.  I might use 
it personally for something, but I wouldn't want to use it as the basis of a 
supposedly trustworthy random seed.

A bit more looking around pointed me at the Fortuna algorithm, which might be 
worth looking into:
https://en.wikipedia.org/wiki/Fortuna_%28PRNG%29

> There's CryptGenRandom.

Thanks. :-)  Not that I use Windows for simulation, but any addition or change 
to Phobos needs to support it.


More information about the Digitalmars-d-learn mailing list