duplicate md5 hash's

From: Date: Thu, 09 Dec 2004 11:39:27 +0000
Subject: duplicate md5 hash's
Groups: php.general 
Request: Send a blank email to php-general+get-203805@lists.php.net to get a copy of this message
Hi, I know this is highly unlikely... but I have this code: $hash = md5(uniqid($message)); where message is a string that the user will input. How likely is it that this hash might be repeated? I'm using the hash as a primary key in a database - the user gets sent the hash as part of a url to retrieve the details of that database row. (its a basic send to a friend e-card system). Is there any way that the same hash could have been generated more than once? Cheers, Guy

« previous php.general (#203805) next »