note 22198 added to function.srand

From: Date: Mon, 10 Jun 2002 14:40:09 +0000
Subject: note 22198 added to function.srand
Groups: php.notes 
Request: Send a blank email to php-notes+get-31661@lists.php.net to get a copy of this message
Something NOT TO DO, but interesting none the less. I was playing and found that if you use: print md5( md5( microtime() * rand() ) . ( microtime() * rand() ) ); This will always be the same no matter how you seed it. -- http://www.php.net/manual/en/function.srand.php http://master.php.net/manage/user-notes.php?action=edit+22198 http://master.php.net/manage/user-notes.php?action=delete+22198 http://master.php.net/manage/user-notes.php?action=reject+22198

« previous php.notes (#31661) next »