Skip to content

Commit

Permalink
Fix random seed initialization in ClassicGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
Pabloo22 committed Feb 19, 2024
1 parent 386245a commit 9f19c6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion job_shop_lib/generators/simple_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def __init__(
self.name_suffix = name_suffix
self.counter = 0
self.seed = seed
random.seed(self.seed)
if seed is not None:
random.seed(seed)

def generate(
self,
Expand Down

0 comments on commit 9f19c6c

Please sign in to comment.