note 48786 added to function.mt-rand
| From: | pauloaticreationsdotcomdotbr at osu1 dot php dot net | Date: | Fri, 07 Jan 2005 00:28:31 +0000 |
| Subject: | note 48786 added to function.mt-rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-82874@lists.php.net to get a copy of this message | ||
Warning! Some times in windows platform (2000 and XP) mt_rand generates the same number. It happens
to me in 3 machines (1xW2000 and 2xWXP) and in another two XP doesnt happens.
PHP Version: 4.3.4
All XP machines with SP2 and all 2000 machines with SP1.
I have to use a mt_srand function to correct this issue.
Hope this help someone.
----
Manual Page -- http://www.php.net/manual/en/function.mt-rand.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48786
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48786&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48786&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48786&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48786&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48786&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48786&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48786&report=yes
Search -- http://master.php.net/manage/user-notes.php