From f1911d9b1571355fffd3faccb8f232fae33f0b3c Mon Sep 17 00:00:00 2001 From: raphaelmaenle Date: Fri, 3 Mar 2023 11:26:29 +0100 Subject: [PATCH] updates random word generator --- bump/bump.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) mode change 100644 => 100755 bump/bump.py diff --git a/bump/bump.py b/bump/bump.py old mode 100644 new mode 100755 index 460c1d5..0a9ffd1 --- a/bump/bump.py +++ b/bump/bump.py @@ -117,11 +117,10 @@ class Bump: def _generate_keywords(self) -> str: pattern = re.compile('^[a-zA-Z]+$') - WORDS = r.get_random_words() secret = "" word_count = 0 while word_count < SENDER_LENGTH + PASSWORD_LENGTH: - word = random.choice(WORDS) + word = r.get_random_word() if pattern.match(word) and len(word) < 10 and len(word) >= 4: secret += word + "-" word_count += 1