From 6fba1e324088f3e9f37da8f23ca53b12b03bb3e6 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Thu, 31 Oct 2019 15:35:27 +0200 Subject: [PATCH] 8 chars should be enough --- code/utils/crypt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/utils/crypt.py b/code/utils/crypt.py index 52dcc50..8000f4f 100644 --- a/code/utils/crypt.py +++ b/code/utils/crypt.py @@ -71,7 +71,7 @@ def random_token(): def random_expiring_hash(): codes = [] - for i in range(3): + for i in range(2): codes.append("".join([random.choice(string.ascii_letters + string.digits) for n in range(4)])) ehash = "-".join(codes) return ehash