note 75325 added to function.rand
| From: | bozo_z_clown at yahoo dot com | Date: | Thu, 24 May 2007 00:36:22 +0000 |
| Subject: | note 75325 added to function.rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-126858@lists.php.net to get a copy of this message | ||
Note that the automatic seeding seems to be done with the current number of seconds which means you
can get the same results for several runs on a fast server. Either call srand() yourself with a
more frequently changing seed or use mt_rand() which doesn't appear to suffer from the problem.
----
Server IP: 64.71.164.2
Probable Submitter: 66.238.59.182
----
Manual Page -- http://www.php.net/manual/en/function.rand.php
Edit -- https://master.php.net/note/edit/75325
Del: integrated -- https://master.php.net/note/delete/75325/integrated
Del: useless -- https://master.php.net/note/delete/75325/useless
Del: bad code -- https://master.php.net/note/delete/75325/bad+code
Del: spam -- https://master.php.net/note/delete/75325/spam
Del: non-english -- https://master.php.net/note/delete/75325/non-english
Del: in docs -- https://master.php.net/note/delete/75325/in+docs
Del: other reasons-- https://master.php.net/note/delete/75325
Reject -- https://master.php.net/note/reject/75325
Search -- https://master.php.net/manage/user-notes.php