From 19e87a7156bf5449f9c5ed9899ebfcfa4d8929c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Casaj=C3=BAs?= Date: Tue, 29 Mar 2022 18:42:28 +0200 Subject: [PATCH] More random to secrets --- app/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/utils.py b/app/utils.py index 42418824..38fc96d6 100644 --- a/app/utils.py +++ b/app/utils.py @@ -1,4 +1,3 @@ -import random import secrets import string import time @@ -17,7 +16,7 @@ with open(WORDS_FILE_PATH) as f: def random_word(): - return random.choice(_words) + return secrets.choice(_words) def word_exist(word):