Merge pull request #4769 from alanfairless/more-password-entropy-revised

Revised patch for more password entropy
reviewable/pr18780/r1
jctanner 11 years ago
commit 929466b8df

@ -174,6 +174,8 @@ def randompass():
# we play it safe :) # we play it safe :)
import random import random
import string import string
# as of python 2.4, this reseeds the PRNG from urandom
random.seed()
lower = ''.join(random.choice(string.ascii_lowercase) for x in range(6)) lower = ''.join(random.choice(string.ascii_lowercase) for x in range(6))
upper = ''.join(random.choice(string.ascii_uppercase) for x in range(6)) upper = ''.join(random.choice(string.ascii_uppercase) for x in range(6))
number = ''.join(random.choice(string.digits) for x in range(6)) number = ''.join(random.choice(string.digits) for x in range(6))

Loading…
Cancel
Save