Martin, it is the \listid and \listtemplateid keywords, which are the ones 
that started this thread in the first place.

BTW, I was convinced by the multi-threading argument that rand() is the 
best way to go. How about a compromise?

UT_uint32 UT_newNumber ()
{
   static UT_uint32 m_theNum = 10000;
   //When this is MUTEX safe, we can do
   //return m_theNum++;
   m_theNum = UT_rand();
   while (m_theNum<10000)
       m_theNum = UT_rand();
}

Matti

At 10:34 16/10/01 +1000, you wrote:
>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.


Reply via email to