[Ecls-list] ECL start and random numbers - PATCH

Philipp Marek 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
open()/read().


Regards,

Phil

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rng.patch
Type: text/x-diff
Size: 2098 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20110802/ca58e282/attachment.patch>


More information about the ecl-devel mailing list