Skip to content

Commit

Permalink
run_seed to 64bit
Browse files Browse the repository at this point in the history
  • Loading branch information
vondele committed Jul 22, 2024
1 parent dc51a47 commit 1596988
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion worker/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ def run_games(
if "start" in task:
print("Variable task sizes used. Opening offset = {}".format(opening_offset))
start_game_index = opening_offset + input_total_games
run_seed = int(hashlib.sha1(run["_id"].encode("utf-8")).hexdigest(), 16) % (2**30)
run_seed = int(hashlib.sha1(run["_id"].encode("utf-8")).hexdigest(), 16) % (2**64)

# Format options according to fast-chess syntax.
def parse_options(s):
Expand Down
2 changes: 1 addition & 1 deletion worker/sri.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"__version": 242, "updater.py": "Mg+pWOgGA0gSo2TuXuuLCWLzwGwH91rsW1W3ixg3jYauHQpRMtNdGnCfuD1GqOhV", "worker.py": "MCl1VBsGmNS09sPurO7+yEczSqeGA2PV44EBHyDqA5UFhEiDxKkoGbuqhw38hbDz", "games.py": "2ZEQMyBYdSIk7e7Z1jsorBD33E9cKqrryCci0NfYDhoKdZCWbKH8tNqQnhNSFgDL"}
{"__version": 242, "updater.py": "Mg+pWOgGA0gSo2TuXuuLCWLzwGwH91rsW1W3ixg3jYauHQpRMtNdGnCfuD1GqOhV", "worker.py": "MCl1VBsGmNS09sPurO7+yEczSqeGA2PV44EBHyDqA5UFhEiDxKkoGbuqhw38hbDz", "games.py": "BzNVX1zlHRuMtutT24IaZHA1O0f8EOL0aiPQUB3ET9G8vf4ig6W+FSza3JRdIi6M"}

0 comments on commit 1596988

Please sign in to comment.