[fpc-pascal] quality of FPC random

Michael Schnell mschnell at lumino.de
Mon Aug 17 10:05:50 CEST 2015


On 08/14/2015 04:38 PM, Mark Morgan Lloyd wrote:
>
> It seeds itself with "entropy" from the intervals between LAN packets, 
> intervals between typed characters and so on.
>
Unfortunately "Randomize" (in Linux in "System") just does

randseed:=longint(Fptime(nil));

if it would use /dev/urandom, the rand() would be as unpredictable as 
/dev/urandom unless you fetch more more than some 2 Gig numbers

But I suppose you can set randseed in user code, as well, if you want to.

-Michael



More information about the fpc-pascal mailing list