From 840aef297b3f61cb63dcb5ece1c27284d5aa50b5 Mon Sep 17 00:00:00 2001 From: CAtOSe Date: Tue, 21 May 2024 23:10:41 +0200 Subject: [PATCH] Use provided seed on reset --- f1tenth_gym/envs/f110_env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/f1tenth_gym/envs/f110_env.py b/f1tenth_gym/envs/f110_env.py index 89a8064b..b365271e 100644 --- a/f1tenth_gym/envs/f110_env.py +++ b/f1tenth_gym/envs/f110_env.py @@ -364,7 +364,7 @@ def reset(self, seed=None, options=None): info (dict): auxillary information dictionary """ if seed is not None: - np.random.seed(seed=self.seed) + np.random.seed(seed=seed) super().reset(seed=seed) # reset counters and data members