We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32a98e0 commit 405fd7eCopy full SHA for 405fd7e
tests/secret.py
@@ -1,12 +1,16 @@
1
+# random passwords for testing
2
+
3
import os
4
import random
5
import string
6
7
LENGTH = 16
8
PASSES: dict[str, str] = {}
-CHARS = "".join(string.printable.split(","))
9
+CHARS = "".join(string.printable.split(",")) # all but ","
10
11
+# both client and server must share the same seed.
12
random.seed(os.environ.get("TEST_SEED", "please set TEST_SEED"))
13
14
+# generate 4 users with pseudo-random 16-chars passwords
15
for login in ("calvin", "hobbes", "susie", "moe"):
16
PASSES[login] = "".join(random.choice(CHARS) for _ in range(LENGTH))
0 commit comments