[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

@@ -13,7 +13,7 @@ from tests import SearxTestCase
def random_string(length, choices=string.ascii_letters):
return ''.join(random.choice(choices) for _ in range(length))
return ''.join(random.choices(choices, k=length))
class TestUtils(SearxTestCase):