From 126975985a6b16a43f1cf2ef40ce481839231e25 Mon Sep 17 00:00:00 2001 From: Luca Colagrande Date: Fri, 27 Sep 2024 17:20:09 +0200 Subject: [PATCH] sw: Fix doitgen seed for CI reproducibility --- sw/apps/doitgen/scripts/datagen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sw/apps/doitgen/scripts/datagen.py b/sw/apps/doitgen/scripts/datagen.py index d1a9c3b46..86cb4cefe 100755 --- a/sw/apps/doitgen/scripts/datagen.py +++ b/sw/apps/doitgen/scripts/datagen.py @@ -55,8 +55,8 @@ def emit_header(self, **kwargs): self.validate(**kwargs) - A = du.generate_random_array((kwargs['r'], kwargs['q'], kwargs['s'])) - x = du.generate_random_array((kwargs['s'], kwargs['s'])) + A = du.generate_random_array((kwargs['r'], kwargs['q'], kwargs['s']), seed=42) + x = du.generate_random_array((kwargs['s'], kwargs['s']), seed=42) _ = self.golden_model(A, x)