note 58698 added to function.microtime
| From: | philip dot waters dot pryce at gmail dot com | Date: | Sat, 12 Nov 2005 15:53:27 +0000 |
| Subject: | note 58698 added to function.microtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-98484@lists.php.net to get a copy of this message | ||
Surely This Would Be Easyer Chris (21-Jan-2005 03:17)
Quote:
Want to generate a unique default password for a user?
$password = md5(microtime());
That is much better than using a random number!
-----
$password = md5(rand(0,microtime()));
That Would Most Definate Be Much More Random :D And Harder To Break
----
Manual Page -- http://www.php.net/manual/en/function.microtime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58698
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58698&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58698&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58698&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58698&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58698&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58698&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58698&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58698&report=yes
Search -- http://master.php.net/manage/user-notes.php