Skip to content

Commit

Permalink
Fix clock_seed issue from #5
Browse files Browse the repository at this point in the history
  • Loading branch information
tkchafin authored Jan 23, 2024
1 parent 4687a3f commit 3ce6cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autostreamtree/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def main():
random.seed(params.seed)
else:
# Use clock time to seed RNG if params.seed is None
clock_seed = int(time.time() * 1000)
clock_seed = int(time.time() * 1000) % (2**32)
np.random.seed(clock_seed)
random.seed(clock_seed)

Expand Down

1 comment on commit 3ce6cfc

@abhishektiwari
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tkchafin This seems to still now working in latest version Docker build. Not an issue as I passed the seed.

Please sign in to comment.