Skip to content

Commit f4bdd4f

Browse files
author
Fabien Coelho
committed
simplify pseudo-random password generation
1 parent efe51e6 commit f4bdd4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/secret.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616

1717
# login -> clear-password
1818
PASSES: dict[str, str] = {
19-
login: "".join(random.choice(PASS_CHARS) for _ in range(PASS_LENGTH))
19+
login: "".join(random.choices(PASS_CHARS, k=PASS_LENGTH))
2020
for login in USERS
2121
}

0 commit comments

Comments
 (0)