Skip to content

Commit 405fd7e

Browse files
author
Fabien Coelho
committed
add comments to secret file
1 parent 32a98e0 commit 405fd7e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/secret.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1+
# random passwords for testing
2+
13
import os
24
import random
35
import string
46

57
LENGTH = 16
68
PASSES: dict[str, str] = {}
7-
CHARS = "".join(string.printable.split(","))
9+
CHARS = "".join(string.printable.split(",")) # all but ","
810

11+
# both client and server must share the same seed.
912
random.seed(os.environ.get("TEST_SEED", "please set TEST_SEED"))
1013

14+
# generate 4 users with pseudo-random 16-chars passwords
1115
for login in ("calvin", "hobbes", "susie", "moe"):
1216
PASSES[login] = "".join(random.choice(CHARS) for _ in range(LENGTH))

0 commit comments

Comments
 (0)