André Warnier schrieb am 15.05.2010 um 22:47:14 (+0200): > A tip : to get a really unique identifier, I often use > "yyyymmddhhmmssrrrrr", where rrrrr is the rand() result, > and the prefix is the date/time. Unless you process more > than 99,999 requests per second, it will always be unique.
I'm probably missing something trivial, but how do you enforce uniqueness over rrrrr for 99,999 consecutive calls to rand? The perldoc doesn't promise any uniqueness, only randomness, which isn't uniqueness. -- Michael Ludwig