scale-test: Use the same seed for the RNG every time

This commit is contained in:
Slava Pestov
2025-10-23 13:13:47 -04:00
parent dc759fded8
commit 1277763350

View File

@@ -802,6 +802,9 @@ def main():
'--sum-multi', action='store_true',
default=False, help='simulate a multi-primary run and sum stats')
# Deterministic seed for the RNG.
random.seed(123456789)
args = parser.parse_args(sys.argv[1:])
if args.self_test:
exit(self_test())