[fpc-devel] I get duplicate GUIDs under Linux
Michael Van Canneyt
michael at freepascal.org
Thu May 29 15:34:21 CEST 2008
On Thu, 29 May 2008, Florian Klaempfl wrote:
> Vincent Snijders schrieb:
> > Michael Van Canneyt schreef:
> > >
> > > I patched it so Randomize is called only once.
> > > Merged to fixes.
> > Thanks. BTW, the log message made me think you introduced a new bug :-)
> > "GetRandomBytes calls random only once"
> > instead of
> > "GetRandomBytes calls randomize only once"
> ... and it is not MT safe ;) because the variable is set before the actual
> work is done.
.. So in the worst case, it's called twice instead of once...
But I've fixed it, with a nice log message.
More information about the fpc-devel