On Oct 22, 2017 4:36 PM, "Mark Phillips" <[email protected]> wrote:
I thought python's uuid.uuid4 guaranteed a unique value. Am I missing something? Mark >From a practical perspective, you are correct, uuid.uuid4() will create a unique value every time. There is no guarantee, though, as eventually you'll run out of values with enough iterations. You probably have a better chance of being struck by lightning 6 times in a row, though, before you get a UUID4 collision. However, the OP is generating a 7 digit integer, meaning that UUID4 is out. -James -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciXzEZXyLp2xxDVRDb_aG%3DNHp6iHstTC7Tdom6R9VMTZng%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

