Fix deterministic feature

This commit is contained in:
Leonardo Bautista-Gomez 2023-03-14 11:07:59 +01:00
parent ba94cc8da1
commit 377072ef79
1 changed files with 5 additions and 2 deletions

View File

@ -33,8 +33,11 @@ def study():
start = time.time()
for shape in config.nextShape():
if not config.deterministic:
random.seed(datetime.now())
if config.deterministic:
random.seed("DASsimulator")
else:
random.seed(random.randint(0, 100))
sim.resetShape(shape)
sim.initValidators()