On 7/12/06, Felix Ingram <[EMAIL PROTECTED]> wrote: > > salt = sha.new(str(random.random())).hexdigest()[:5]
Dunno is this really a developer question, but is there really a point using sha there? That one could be done without sha too using random.getrandbits(bits), eg.: ('%x' % random.getrandbits(128))[:5] Not as pretty as the sha-solution, but a bit more efficent and not using the 'useless' sha there. -- Jyrki // [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---