PHP 4.0 Bug #8293: rand function failure
| From: | edasx at worldoffreegames dot com | Date: | Sat, 16 Dec 2000 15:20:34 +0000 |
| Subject: | PHP 4.0 Bug #8293: rand function failure | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41590@lists.php.net to get a copy of this message | ||
From: edasx@worldoffreegames.com
Operating system: Win32 - Win98SE
PHP version: 4.0.3pl1
PHP Bug Type: Unknown/Other Function
Bug description: rand function failure
srand((double)microtime()*1000000);
$rndnum = rand(1, 100000);
this fails, with invalid range error.
the range of
$rndnum = rand(1, 32530);
does not fail and around 34000 fails, so there's probably incorrect type (integer) that's
too small.
--
Edit Bug report at: http://bugs.php.net/?id=8293&edit=1