[nycphp-talk] generate random unique 8-digit number
Daniel Convissor
danielc at analysisandsolutions.com
Fri Mar 13 11:47:41 EDT 2009
On Tue, Mar 10, 2009 at 07:23:56PM -0400, Tim Gales wrote:
> md5(uniqid(rand(), true))
Though MD5 collisions are possible, so I wouldn't count on that always
resulting in a unique id.
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
More information about the talk
mailing list