7 lines
184 B
Python
7 lines
184 B
Python
import secrets
|
|
import string
|
|
|
|
def get_random_string(length=16):
|
|
alphabet = string.ascii_letters + string.digits
|
|
return ''.join(secrets.choice(alphabet) for _ in range(length))
|