Skip to content

Commit

Permalink
Use provided seed on reset
Browse files Browse the repository at this point in the history
  • Loading branch information
CAtOSe committed May 21, 2024
1 parent 5dbba85 commit 840aef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion f1tenth_gym/envs/f110_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 840aef2

Please sign in to comment.