7 lines
179 B
Python
7 lines
179 B
Python
import secrets
|
|
import string
|
|
|
|
def generate_room_code(length=10):
|
|
chars = string.ascii_letters + string.digits
|
|
return ''.join(secrets.choice(chars) for _ in range(length))
|