in reply to Re^2: MD5-based Unique Session ID Generator
in thread MD5-based Unique Session ID Generator

While Data::UUID is a good solution, it doesn't guarantee that "you won't get duplicates, ever" (heck - there are only 128bits after all :-) ... A UUID is 128 bits long, and is guaranteed to be different from all other UUIDs/GUIDs generated until 3400 CE.

I didn't say "it will never produce duplicates" -- just that "YOU won't get duplicates" (unless you live for over a thousand years).

  • Comment on Re^3: MD5-based Unique Session ID Generator

Replies are listed 'Best First'.
Re^4: MD5-based Unique Session ID Generator
by adrianh (Chancellor) on Aug 21, 2004 at 20:54 UTC
    I didn't say "it will never produce duplicates" -- just that "YOU won't get duplicates" (unless you live for over a thousand years)

    You mean you're not planning to?

    I fully intend to be scanned and on CPAN as JAPH::ADIE when the singularity hits (probably initiated by the release of Perl 6 into the wild :-)