summaryrefslogtreecommitdiff
path: root/script/traffic_replay
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2018-10-05 14:42:27 +1300
committerDouglas Bagnall <dbagnall@samba.org>2019-01-08 23:55:31 +0100
commit4c463334997d184f6186d26258bdde84d216e136 (patch)
tree8fc1ccc6c798b66902b5cb2891e57b00255ae540 /script/traffic_replay
parent8760168aa842c1e883e2059036c7e6621c77d887 (diff)
downloadsamba-4c463334997d184f6186d26258bdde84d216e136.tar.gz
traffic replay: allow --random-seed=0
Zero is a valid seed. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'script/traffic_replay')
-rwxr-xr-xscript/traffic_replay4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/traffic_replay b/script/traffic_replay
index 124136e9495..5adeec101de 100755
--- a/script/traffic_replay
+++ b/script/traffic_replay
@@ -71,7 +71,7 @@ def main():
parser.add_option('-c', '--clean-up',
action="store_true",
help='Clean up the generated groups and user accounts')
- parser.add_option('--random-seed', type='int', default=0,
+ parser.add_option('--random-seed', type='int', default=None,
help='Use to keep randomness consistent across multiple runs')
model_group = optparse.OptionGroup(parser, 'Traffic Model Options',
@@ -173,7 +173,7 @@ def main():
" for the users created as part of this test"))
sys.exit(1)
- if opts.random_seed:
+ if opts.random_seed is not None:
random.seed(opts.random_seed)
creds = credopts.get_credentials(lp)