From 377072ef7951c1d0a064869a247871a767af1801 Mon Sep 17 00:00:00 2001 From: Leonardo Bautista-Gomez Date: Tue, 14 Mar 2023 11:07:59 +0100 Subject: [PATCH] Fix deterministic feature --- study.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/study.py b/study.py index 52433c5..67dac5f 100644 --- a/study.py +++ b/study.py @@ -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()