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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php