mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2026-05-03 06:00:21 +00:00
11 lines
289 B
Python
11 lines
289 B
Python
import os
|
|
import random
|
|
import string
|
|
|
|
RANDOM_STRING_POOL = string.ascii_letters + string.digits
|
|
|
|
|
|
def generate_random_string(length: int = 5) -> str:
|
|
# Use the os.urandom(16) as the seed
|
|
random.seed(os.urandom(16))
|
|
return "".join(random.choices(RANDOM_STRING_POOL, k=length))
|