[fpc-devel] I get duplicate GUIDs under Linux
Michael Van Canneyt
michael at freepascal.org
Thu May 29 14:47:37 CEST 2008
On Thu, 29 May 2008, Graeme Geldenhuys wrote:
> 2008/5/29 Mattias Gärtner <nc-gaertnma at netcologne.de>:
> > Sorry. Openssl has *nothing* to do with the CreateGUID function.
> I thought that much, but then thought it wouldn't hurt installing the
> patch anyway.
> >> What is really weird is that once I hit the 1021 limit, I can't run
> >> that method again. I get a duplicate after 1 add! It seems to behave
> >> exactly like random() without calling randomize(). It seems to
> >> remember the last "position" it it's seed or something and tries to
> >> continue where it left off. The same pattern, over and over.
> > Maybe the 1021 is the limit of /dev/random.
> I gather that you can reproduce the issue and also get stuck on 1021?
can you send me your test program, so I can test my fixes ?
More information about the fpc-devel