mirror of
https://github.com/evgen-app/chess_rpg_backend.git
synced 2024-11-26 03:24:00 +03:00
9 lines
176 B
Python
9 lines
176 B
Python
|
import string
|
||
|
import secrets
|
||
|
|
||
|
|
||
|
def generate_charset(length: int):
|
||
|
return "".join(
|
||
|
secrets.choice(string.digits + string.ascii_letters) for _ in range(length)
|
||
|
)
|