Skip to content

Commit 86e5b64

Browse files
authored
Merge pull request #85089 from slavapestov/scale-test-seed
scale-test: Use the same seed for the RNG every time
2 parents c94720d + 1277763 commit 86e5b64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/scale-test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,9 @@ def main():
802802
'--sum-multi', action='store_true',
803803
default=False, help='simulate a multi-primary run and sum stats')
804804

805+
# Deterministic seed for the RNG.
806+
random.seed(123456789)
807+
805808
args = parser.parse_args(sys.argv[1:])
806809
if args.self_test:
807810
exit(self_test())

0 commit comments

Comments
 (0)