[fpc-devel] I get duplicate GUIDs under Linux

Michael Van Canneyt michael at freepascal.org
Mon Jun 2 14:12:39 CEST 2008



On Mon, 2 Jun 2008, Daniƫl Mantione wrote:

> 
> 
> Op Mon, 2 Jun 2008, schreef Florian Klaempfl:
> 
> > > all, if you use Random(), you want something random, yet many
> > > developers make the common mistakes of not calling Randomize() or
> > > calling it to often.  If FPC handled that for us, nobody would every
> > > make those mistakes again!
> >
> > People might want to start with a defined randseed to reproduce behaviour.
> 
> This implies createguid should not call randomize automatically either, it
> prevents you having deterministic behaviour, especially in a program where
> guids and normal use of the randomizer are combined.

Creating GUIDs should never be deterministic.. ?

Michael.


More information about the fpc-devel mailing list