[fpc-devel] I get duplicate GUIDs under Linux
Michael Van Canneyt
michael at freepascal.org
Thu May 29 14:45:07 CEST 2008
On Thu, 29 May 2008, Mattias Gärtner wrote:
> Zitat von Graeme Geldenhuys <graemeg.lists at gmail.com>:
> > 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.
> It would hurt a lot *not* installing the patch. The bigger problem is that the
> other distributions including windows, Mac OS X, BSD, ... server must now
> install the blacklist too. I guess non debian systems now have bigger problems
> than debian.
> > >> 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?
> Yes. 1019
> And then pango gave:
> (testproject:27449): Pango-WARNING **: error opening config file
> '/etc/pango/pangorc': Too many open files
> Apparently CreateGUID is buggy and should not be used under Linux.
Fixed the file handle leak. Merging to fixes now.
More information about the fpc-devel