PHP 4.0 Bug #8111: wrong example

From: Date: Tue, 05 Dec 2000 08:39:26 +0000
Subject: PHP 4.0 Bug #8111: wrong example
Groups: php.dev 
Request: Send a blank email to php-dev+get-40085@lists.php.net to get a copy of this message
From: pra@mgn.net Operating system: solaris PHP version: 4.0.3pl1 PHP Bug Type: Documentation problem Bug description: wrong example this example (of the documentation of mt_srand()) <? // seed with microseconds since last "whole" second mt_srand ((double) microtime() * 1000000); echo mt_rand(); ?> always give the same value. this example work well <? // seed with microseconds since last "whole" second mt_srand (substr(microtime(),2)); echo mt_rand(); ?> -- Edit Bug report at: http://bugs.php.net/?id=8111&edit=1

« previous php.dev (#40085) next »