[Ecls-list] ECL start and random numbers - PATCH
philipp at marek.priv.at
Tue Aug 2 06:28:47 UTC 2011
> I just saw that ECL read /dev/urandom on startup,
> obviously to initialize its random number generator.
> * If the randomization at startup is wanted, how
> about reading much less
> (eg. 3 words) and using a pseudo-random-number
> generator to fill the random state?
> I'd be willing to provide a patch for the third point above - if there's a chance to
get it included.
Here it is; using some bytes of /dev/urandom it mixes more entropy into the RNG.
I noticed that fread() with current debian would always buffer 4kB, so I had to move to
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2098 bytes
Desc: not available
More information about the ecl-devel