Have server provide explicit int32 seeds

This commit is contained in:
Andrew Grant committed 2024-09-20 20:32:46 -04:00
1 parent 795f1a0528
commit 076f7af5ea
4 files changed
+9 -7

No files matched your search

+4 -3
View File
@@ -249,10 +249,11 @@ def workload_to_dictionary(test, result, machine):
cutechess_cnt = workload['distribution']['cutechess-count']
pairs_per_cnt = workload['distribution']['games-per-cutechess'] // 2
if test.test_mode == 'DATAGEN' and not test.play_reverses:
test.book_index += cutechess_cnt * pairs_per_cnt * 2
else:
if test.test_mode != 'DATAGEN':
test.book_index += cutechess_cnt * pairs_per_cnt
else:
workload['test']['genfens_seeds'] = [
random.randint(0, 2**32 - 1) for x in range(machine.info['concurrency'])]
test.save()