Postby SyLuS » Mon Oct 08, 2012 9:32 am
You dont have to tell me, that it have to be unique.
I just wanted to know, how do you create this unique value. Is there any hash function for doing that?
My solution were to take a random number, convert them to binary. Foreach 0 create an random number and foreach 1 create an random character so i will get an random string with characters and numbers.
So i use this 3 Times ( XXXXX - XXXX - XXXXX ) and use this as unique key.
But if there is a function already i dont have to code it ^^
Dont invent the wheel every time new.