Skip to content

Commit

Permalink
Merge pull request #135 from CAtOSe/fix-reset-seed
Browse files Browse the repository at this point in the history
Use provided seed when calling F110Env.reset
  • Loading branch information
hzheng40 authored May 21, 2024
2 parents 5dbba85 + 840aef2 commit 5ac1d09
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 5ac1d09

Please sign in to comment.