Re: [PHP-DB] generating random id's

2006-02-09 Thread Miles Thompson

At 03:26 AM 2/9/2006, JeRRy wrote:



  Just to let you all know I used PHP's unique ID generator to generate a 
unique id for tracking purposes.  I than md5 it hide the format a bit, 
would this be enough?  Or can be easily worked out also?  Need it pretty 
tight and keeping the likelyhood down of having multiple listings of 
id's.  It's using 32 chars.


  Jerry



Yes, I've done something similar. Used the random number generator and 
chr()'d anything that's printable ascii, looping until I have the desired 
length, then md5'd it.

It works and generates a peculiar value.

Miles



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.15.3/254 - Release Date: 2/8/2006

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] generating random id's

2006-02-08 Thread JeRRy
 
  Just to let you all know I used PHP's unique ID generator to generate a 
unique id for tracking purposes.  I than md5 it hide the format a bit, would 
this be enough?  Or can be easily worked out also?  Need it pretty tight and 
keeping the likelyhood down of having multiple listings of id's.  It's using 32 
chars.
   
  Jerry