note 13641 deleted from function.rand by jimw
| From: | jimw@php.net | Date: | Tue, 18 Dec 2001 19:33:20 +0000 |
| Subject: | note 13641 deleted from function.rand by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23159@lists.php.net to get a copy of this message | ||
Use mt_rand() instead of rand()
I just had a problem with php 3.0.18 on a sgi-irix-65-system
The following code worked but it generated a errormessage! On other systems I didn't have the
same problem. With mt_rand() it works :-))
srand((double)microtime()*1000000);
$code = rand (100000,999999);