[fpc-pascal] quality of FPC random
Michael Van Canneyt
michael at freepascal.org
Mon Aug 17 11:15:41 CEST 2015
On Mon, 17 Aug 2015, Peter wrote:
> On 17/08/15 09:05, Michael Schnell wrote:
>> Unfortunately "Randomize" (in Linux in "System") just does
>> randseed:=longint(Fptime(nil));
>>
>> if it would use /dev/urandom,
>> ....
>
>
> Perhaps that is worthy of a bug report?
Don't bother. It's just a default.
You can enter whatever you want in randseed if so desired.
And as Jonas pointed out, you should not use FPC's Builtin random to begin with
if you want really random numbers, because it is perfectly predictable.
In short:
People interested in crypto grade randomness should use specialized routines,
not the built-ins provided by FPC.
Michael.
More information about the fpc-pascal
mailing list