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.

Vincent
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to