Re: Random Unique ID
| From: | Stut | Date: | Wed, 21 Mar 2007 17:20:21 +0000 |
| Subject: | Re: Random Unique ID | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-251027@lists.php.net to get a copy of this message | ||
ccspencer@softhome.net wrote:
I want to add a random unique ID to a Mysql table. Collisions are unlikely but possible so to handle those cases I'd like to regenerate the random ID until there is no collision and only then add my row. Any suggestions for a newbie as to the right way to go about doing this?1) Not even slightly PHP related. 2) Why random? Incrementing not good enough for you? -Stut