[nycphp-talk] generate random unique 8-digit number
John Campbell
jcampbell1 at gmail.com
Wed Mar 11 18:16:59 EDT 2009
On Wed, Mar 11, 2009 at 5:01 PM, Fernando Gabrieli <fgabrieli at gmail.com> wrote:
> dont forget that md5($anyString) can return two hashes with the same value
> (if you have a db with 1,000,000 entries using this, it may happen)
The odds of an MD5 collision with 1,000,000 entries is
0.0000000000000000000000000001%
That is a risk I am willing to take.
Regards,
John Campbell
More information about the talk
mailing list