how do i genertae unique strings or for user identification.
Posted: Tue Jun 13, 2006 10:15 am
I need to assign a unique code, string or intiger, to each user.
The codes have to be absolutly unique and they can be used as a secret referer... for example, if the user X wants to trust user Y, he can just send him his secret code.
I think using a random string is the way to go. But how do i generate uique strings?
I think five or six character long would do it, more than that it can be anoying to the users.
Any ideas?
Thx in advance
The codes have to be absolutly unique and they can be used as a secret referer... for example, if the user X wants to trust user Y, he can just send him his secret code.
I think using a random string is the way to go. But how do i generate uique strings?
I think five or six character long would do it, more than that it can be anoying to the users.
Any ideas?
Thx in advance