Thomas Grill wrote:
something like GUIDs would be great, but i think they should be somehow readable (not Microsoft-like).
A 32-bit number should be sufficient: 0x00000000 to 0xFFFFFFFF allows for more than 4 billion objects in a patch.
What about a running index per patcher, that is incremented every time an object is created?
Yes, that's faster than generating a random number and then checking for duplicates.
Or a date/time/microtime combination?
If objects are never created simultaneously within the resolution of the clock...It's still faster just to increment a variable than to query the system clock.
Martin