note 30561 added to function.rand
| From: | tudor at tudorejo dot org | Date: | Sat, 22 Mar 2003 03:45:41 +0000 |
| Subject: | note 30561 added to function.rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45628@lists.php.net to get a copy of this message | ||
I've been using the random password functions listed here. I've tried both.
However, neither appear to give me any resemblance of a random password. Every time the script
runs, it appears to generate the same password!
Does this mean that rand() is basing it's randomness on a known system value?
I'm using Debian Woody with Apache, MySQL, and PHP4. If anyone is getting the same or a
different answer, please let me know.
Cheers.
--
http://www.php.net/manual/en/function.rand.php
http://master.php.net/manage/user-notes.php?action=edit+30561
http://master.php.net/manage/user-notes.php?action=delete+30561
http://master.php.net/manage/user-notes.php?action=reject+30561