Posted By

sagz on 02/26/11


Tagged

substr random unique hash seed rand SHA1


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

notturnale


Random Unique ID Hash Generator


 / Published in: PHP
 

  1. $seed = 'Rand0m';
  2.  
  3. for($i=0; $i<5000; $i++)
  4. {
  5. echo substr(sha1(uniqid($seed . mt_rand(), true)), 0, 10)."\n";
  6. }

Report this snippet  

You need to login to post a comment.