[mod] engines: replace [random.choice(...) for ... in range(..)] with random.choices

This commit is contained in:
Bnyro
2026-07-29 17:11:53 +02:00
parent 702f702f9b
commit a449518ed4
6 changed files with 6 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ from . import Answerer, AnswererInfo
def random_characters():
random_string_letters = string.ascii_lowercase + string.digits + string.ascii_uppercase
return [random.choice(random_string_letters) for _ in range(random.randint(8, 32))]
return random.choices(random_string_letters, k=random.randint(8, 32))
def random_string():