install/randomPassword.py

This commit is contained in:
Usman Nasir
2019-12-10 20:30:51 +05:00
parent 3e5a333f9a
commit a3478e933c

View File

@@ -13,7 +13,7 @@ def generate_pass(length=14):
password = []
while len(password) < length:
key = choice(list(char_set.keys()))
key = choice(char_set.keys())
a_char = urandom(1)
if a_char in char_set[key]:
if check_prev_char(password, char_set[key]):