Subject | Re: Primary Key - GUID |
---|---|
Author | Ian A. Newby |
Post date | 2006-01-26T14:22:43Z |
Hi Marcelo,
I wouldn't use guids for this purpose. A better approach (in my
opinion) would be to use the primary key of your table, concatenate it
to a secret string and then calculate the MD5 of the result. Use the
MD5 as your purchase key.
GUIDs just arn't random enough.
Regards
Ian Newby
I wouldn't use guids for this purpose. A better approach (in my
opinion) would be to use the primary key of your table, concatenate it
to a secret string and then calculate the MD5 of the result. Use the
MD5 as your purchase key.
GUIDs just arn't random enough.
Regards
Ian Newby