On Wed, Jan 12, 2011 at 1:11 PM, Micah Carrick <mi...@greentackle.com> wrote: > I cannot use uuid4().hex because that's 32 characters... I need <30.
uuid4().hex[:30] is almost as random as uuid4().hex There are no timers, MAC addresses, or other non-random sections in a UUID4, so taking any 30-character slice from it should get you 120 bits of pure random goodness. -- Regards, Ian Clelland <clell...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.