note 28787 added to function.md5
| From: | cmanky at hanmail dot net | Date: | Thu, 23 Jan 2003 21:47:27 +0000 |
| Subject: | note 28787 added to function.md5 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42662@lists.php.net to get a copy of this message | ||
<?
srand((double)microtime()*1000000);
$unique_str = md5(rand(0,getrandmax()));
echo "$unique_str(" . strlen($unique_str) . ")<br><br>";
$unique_str = md5(2468);
echo "$unique_str(" . strlen($unique_str) . ")<br>";
$unique_str = md5(2468);
echo "$unique_str(" . strlen($unique_str) . ")<br>";
?>
559269b636448e707b934d2e19a15af8(32)
e82c4b19b8151ddc25d4d93baf7b908f(32)
e82c4b19b8151ddc25d4d93baf7b908f(32)
not unique.
--
http://www.php.net/manual/en/function.md5.php
http://master.php.net/manage/user-notes.php?action=edit+28787
http://master.php.net/manage/user-notes.php?action=delete+28787
http://master.php.net/manage/user-notes.php?action=reject+28787