mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
scale-test: Use the same seed for the RNG every time
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user