mirror of
https://github.com/Ai-hack-MAGNUM-OPUS/backend.git
synced 2024-11-28 11:03:42 +03:00
8 lines
219 B
Python
8 lines
219 B
Python
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))
|