ID: 16764 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Win2000, IIS-CGI PHP Version: 4.2.0 New Comment:
INdeed was stricter type chcking implemented. This should work: srand ((int) microtime()); Derick Previous Comments: ------------------------------------------------------------------------ [2002-04-23 15:11:31] [EMAIL PROTECTED] Is this a bug, or is microtime implementing stricter type checking? After all most faq's list this as the recommended way of generating a seed. <?php srand(microtime()); ?> Generates: Warning: srand() expects parameter 1 to be long, string given in d:\inetpub\wwwroot\php\test.php on line 2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16764&edit=1