[fpc-pascal] quality of FPC random
Klaus Hartnegg
hartnegg at gmx.de
Thu Aug 20 22:50:05 CEST 2015
Am 14.08.2015 um 15:38 schrieb Xiangrong Fang:
> I need to generate random numbers to be used as IV of block ciphers. My
> question is: is FPC built-in PRNG good enough as comparing to /dev/urandom?
NO!!!
For crypto always use /dev/urandom
> On the other hand, /dev/urandom in my impression is fairly slow, how is
> the speed of Random() comparing to that?
Speed is irrelevant, because you do not need many truely random numbers
for crypto.
For crypto always use /dev/urandom
More information about the fpc-pascal
mailing list