note 101561 added to function.microtime

From: Date: Fri, 24 Dec 2010 20:07:55 +0000
Subject: note 101561 added to function.microtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-175196@lists.php.net to get a copy of this message
While doing some experiments on using microtime()'s output for an entropy generator I found that its microsecond value was always quantified to the nearest hundreds (i.e. the number ends with 00), which affected the randomness of the entropy generator. This output pattern was consistent on three separate machines, running OpenBSD, Mac OS X and Windows. The solution was to instead use gettimeofday()'s output, as its usec value followed no quantifiable pattern on any of the three test platforms. ---- Server IP: 69.147.83.197 Probable Submitter: 83.227.160.33 ---- Manual Page -- http://www.php.net/manual/en/function.microtime.php Edit -- https://master.php.net/note/edit/101561 Del: integrated -- https://master.php.net/note/delete/101561/integrated Del: useless -- https://master.php.net/note/delete/101561/useless Del: bad code -- https://master.php.net/note/delete/101561/bad+code Del: spam -- https://master.php.net/note/delete/101561/spam Del: non-english -- https://master.php.net/note/delete/101561/non-english Del: in docs -- https://master.php.net/note/delete/101561/in+docs Del: other reasons-- https://master.php.net/note/delete/101561 Reject -- https://master.php.net/note/reject/101561 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#175196) next »