[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nyphp-talk
Subject:    Re: [nyphp-talk] generate random unique 8-digit number
From:       Daniel Convissor <danielc () analysisandsolutions ! com>
Date:       2009-03-13 15:47:41
Message-ID: 20090313154740.GA27968 () panix ! com
[Download RAW message or body]

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
_______________________________________________
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

http://www.nyphp.org/show_participation.php
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic