This commit is contained in:
Luke Rogers 2012-10-12 12:23:37 +13:00
parent 06f14ee59a
commit 85ff0d93b6

View file

@ -11,7 +11,7 @@ def password(inp, notice=None):
# find the length needed for the password # find the length needed for the password
numb = inp.split(" ") numb = inp.split(" ")
try: try:
length = int(numb[0]) length = int(numb[0])
except ValueError: except ValueError:
@ -38,7 +38,7 @@ def password(inp, notice=None):
okay = okay + list(string.ascii_lowercase) okay = okay + list(string.ascii_lowercase)
password = "" password = ""
# generates password # generates password
for x in range(length): for x in range(length):
password = password + random.choice(okay) password = password + random.choice(okay)