Posted By

gdonald on 09/27/06


Tagged

mtsrand seed


Versions (?)

php make mt_srand seed


 / Published in: PHP
 

  1. function makeSeed()
  2. {
  3. list( $usec, $sec ) = explode( ' ', microtime() );
  4. return (float) $sec + ( (float) $usec * 100000 );
  5. }

Report this snippet  

You need to login to post a comment.