Creating Uniqid

Technical discussion for developers and service providers

Creating Uniqid

Postby umbra989 » 10:14am, Tue 24 Feb, 2009

Hi,

I noticed that the code for creating a unique id is somewhat complex. Is there a specific reason for that? I find that creating a unique id by using

Code: Select all
 md5(concat(UNIX_TIMESTAMP(),email))


in your mysql statements is sufficient. I think dat even this should be enough

Code: Select all
 md5(email))


since email is a unique key in the phplist_user_user table but I am not sure about the uniqueness of an md5 hash. Chances should be slim though.

Anyone agree?

Regards, Jaap
umbra989
phpList newbie
 
Posts: 1
Joined: 10:08am, Tue 24 Feb, 2009

Return to Developers Space

Who is online

Users browsing this forum: No registered users and 1 guest