Epoch time + msecs
Ola Fosheim Grøstad via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Nov 16 06:21:00 PST 2015
On Monday, 16 November 2015 at 13:34:41 UTC, Kagamin wrote:
> On Monday, 16 November 2015 at 10:47:36 UTC, Marc Schütz wrote:
>> Hmmm... why is `unpredictableSeed` only a `uint`? Surely most
>> PRNGs have more than 32 bits of internal state?
>
> Maybe it's only worth 32 random bits? There's a rangified
> example too:
> http://dlang.org/phobos/std_random.html#.MersenneTwisterEngine.seed.2
No, to get a period of 2^19937 you need 19937 bits or 2-3 KiB… ;)
More information about the Digitalmars-d-learn
mailing list