fix: removed hard-coded length
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ def generate_password(names: int) -> str:
|
||||
|
||||
def generate_insane_password(length: int) -> str:
|
||||
ascii_pool: str = ''.join(chr(i) for i in chain(range(40, 127), range(180, 256)))
|
||||
return ''.join(secrets.choice(ascii_pool) for _ in range(20))
|
||||
return ''.join(secrets.choice(ascii_pool) for _ in range(length))
|
||||
|
||||
if __name__ == '__main__':
|
||||
if len(sys.argv) <= 1:
|
||||
|
||||
Reference in New Issue
Block a user