Subject: Re: RFC: getting a unique integer value
From: Hubert Figuiere (hfiguiere@teaser.fr)
Date: Fri Oct 12 2001 - 03:42:35 CDT
According to Matti Picus <matti@picus.org>:
> Generating a unique int ID seems to be faulty in many places in AbiWord.
> The general method is to use the result from UT_rand() and hope that it is
> unique. I recently modified the RTF importer with a different method:
> using a static member variable.
>
> I hope the construct is portable to all platforms.
I agree on the idea. I already have a "to be committed" change for header
footer that use a similar idea (currently I use UT_rand(), but this is BAD).
Hub
This archive was generated by hypermail 2b25 : Fri Oct 12 2001 - 03:41:05 CDT