[fpc-pascal] Random(), Randomize, and Linux permissions

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Sep 30 09:07:58 CEST 2004

On 29 sep 2004, at 21:03, Alan Mead wrote:

> Hence my attempt to use /dev/urandom.  I had suggested this in a
> discussion on this list about a year ago and I thought I would try to
> implement it now...  I acknowledge the limitations of this approach..
> maybe it would be easier to just stick a 1 sec delay before the
> randomize :)

You could use a number from /dev/random or /dev/urandom to initialize 
randseed (that's just a global variable in the system unit, which is 
the only thing that randomize() changes when you call it), instead of 
randomize(). Then you'll get the best of both worlds.


More information about the fpc-pascal mailing list