Or I can belt&suspender it and re-run the key creating function if my DB throws a constraint violation...
Indeed a wise precaution. If performance isn't an issue, using Math::Random::MT is another.
In reply to Re^3: How likely is rand() to repeat?
by BrowserUk
in thread How likely is rand() to repeat?
by desertrat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |