mirror of
https://github.com/Ai-hack-MAGNUM-OPUS/backend.git
synced 2024-11-24 17:23:44 +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))
|