mirror of
https://github.com/Ai-hack-MAGNUM-OPUS/backend.git
synced 2024-12-01 04:13:43 +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))
|