On 23. sep. 2011, at 16:47, Igor Stasenko <[email protected]> wrote:
> On 23 September 2011 16:32, Denis Kudriashov <[email protected]> wrote: >> Yes, I know. >> >> I just use generated object id to create unique file to archive object. >> I generate id by current date and time "yyyyMMddHHmmssSSS + object hash". >> But It is my mistake. >> Now I use "yyyyMMddHHmmssSSS + UUID" (I need date parameter too). >> And I think id like "yyyyMMddHHmmssSSS + object address" is good too for my >> purpose. >> > > AFAIK, UUID generation algorithm already includes a current time > inside. Which means that your addition of date/time actually > superfluous. > No. The plugin (when it works) generates type 4 UUIDs, which is purely random bytes from dev/urandom (with some bitfields identifying version). The fallback code uses current time as part of a PRNG seed, but also attempts to achieve a type 4 UUID. Cheers, Henry
