backend/app/checker/services/generators.py

8 lines
219 B
Python
Raw Permalink Normal View History

2022-08-27 07:38:54 +03:00
import random
import string
def generate_charset(length: int) -> str:
"""Generate a random string of characters of a given length."""
return "".join(random.choice(string.ascii_letters) for _ in range(length))