#2879: Fix call to set_random_seed() in reset().

This commit is contained in:
Nick Todd
2024-09-16 10:08:45 +01:00
parent e0a1092834
commit 215ceaa6e8

View File

@@ -168,7 +168,7 @@ class PrimaiteGymEnv(gymnasium.Env):
f"avg. reward: {self.agent.reward_function.total_reward}"
)
if seed is not None:
set_random_seed(seed)
set_random_seed(seed, self.generate_seed_value)
self.total_reward_per_episode[self.episode_counter] = self.agent.reward_function.total_reward
if self.io.settings.save_agent_actions: