On Oct 22, 2017 4:36 PM, "Mark Phillips" <m...@phillipsmarketing.biz> 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. 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.