Hi,
attached you find a CreateGUID implementation that creates (time-based) guids. These follow a low-high approach, with a random part and a time part.
If available, uses libuuid.so.1 and /dev/urandom. Otherwhise uses manual implementation (which sucks - just test by while true ; do ./createguid ; done and behold all the equal guids) as a fallback.
The function should be pretty usable *if* libuuid.so.1 is available, and pretty dangerous if not. I'll not be improving the fallback further though. Someone wants to step in?
cheers,
Danny
