Unverified Commit 900be804 authored by Yuge Zhang's avatar Yuge Zhang Committed by GitHub
Browse files

Use Random to generate experiment id (#5073)

parent 0058fbc2
......@@ -2,12 +2,12 @@
# Licensed under the MIT license.
from pathlib import Path
import random
from random import Random
import string
def generate_experiment_id() -> str:
return ''.join(random.sample(string.ascii_lowercase + string.digits, 8))
return ''.join(Random().sample(string.ascii_lowercase + string.digits, 8))
def create_experiment_directory(experiment_id: str) -> Path:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment