note 106132 deleted from function.uniqid by danbrown
| From: | danbrown@php.net | Date: | Thu, 13 Oct 2011 17:29:42 +0000 |
| Subject: | note 106132 deleted from function.uniqid by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183859@lists.php.net to get a copy of this message | ||
Note Submitter: admin at totalshopuk dot com
----
<?php
function unique_md5()
{
$chars = 'abcdefghijklmnopqrstuvwxyz123456789';
$pass = '';
for ($i = 0; $i < 32; $i++){
$pass .= $chars[(rand() % strlen($chars))];
}
return md5($pass);
}
?>