note 12015 added to function.srand.php

From: Date: Sun, 18 Mar 2001 21:28:25 +0000
Subject: note 12015 added to function.srand.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12529@lists.php.net to get a copy of this message
richard@zend.com said above: >*ALWAYS* use (double)microtime()*1000000 as your seed. >Do *NOT* just use time(). Do not add an extra 0 to make it "bigger". ... >Anything else is sub-standard. ... >For now, just trust the PHP Developers, okay? If anything else is "sub-standard", why not make the seed argument optional, and make the default (double)microtime()*1000000 when the argument is absent? Save me a few keystrokes, anyway, and help make sure people don't do it in a "sub-standard" fashion... :) http://www.php.net/manual/en/function.srand.php

« previous php.notes (#12529) next »