stuff
This commit is contained in:
parent
06f14ee59a
commit
85ff0d93b6
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Reference in a new issue