[fpc-devel] I get duplicate GUIDs under Linux

Vincent Snijders vsnijders at quicknet.nl
Mon Jun 2 10:58:21 CEST 2008

Daniƫl Mantione schreef:
> 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.

It is not a problem anymore. Call CreateGuid once, set the randseed and you get 
predictable guids afterwards.


More information about the fpc-devel mailing list