Commit 32c7fadf authored by Marco Mariani's avatar Marco Mariani

allow repeated chars in generated passwd

parent ea10dbac
...@@ -32,7 +32,8 @@ import random ...@@ -32,7 +32,8 @@ import random
import string import string
def generatePassword(length): def generatePassword(length):
return ''.join(random.SystemRandom().sample(string.ascii_lowercase, length)) choice = random.SystemRandom().choice
return ''.join(choice(string.ascii_lowercase) for i in range(length))
class Recipe(object): class Recipe(object):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment