Re: RFC: getting a unique integer value


Subject: Re: RFC: getting a unique integer value
From: Dom Lachowicz (dominicl@seas.upenn.edu)
Date: Tue Oct 16 2001 - 09:42:22 CDT


> I want to reserve the first 10000 ID's for future use with lists. BTW
> the
> RTF SPEC DOES ask for random 32 bit ID's for some purposes. I forget
> which right now though.

It would be trivial to ensure that all IDs returned were > N with either
scheme. If you want (or are required to use) a random number, use UT_rand. If
you want some number that hasn't been used before, use UT_newNumber. They're
fundamentally different requirements and thus fundamentally different
functions. Know what to use and use what you mean, people...

Dom



This archive was generated by hypermail 2b25 : Tue Oct 16 2001 - 09:42:29 CDT