summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-08-13 10:00:46 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-08-13 10:00:46 +0000
commit03984ec362fda94ccb267ee51c64b67244e1a3ed (patch)
tree78b354bc34319664538491742f45b19e9dc5dba2 /llvm
parent3f92ecc2a034863d2950a21d19c674a7ba5cf2c6 (diff)
downloadbcm5719-llvm-03984ec362fda94ccb267ee51c64b67244e1a3ed.tar.gz
bcm5719-llvm-03984ec362fda94ccb267ee51c64b67244e1a3ed.zip
[shuffle] Make the seed an optional component and add support for
letting the python very directly compute a UUID. llvm-svn: 215533
Diffstat (limited to 'llvm')
-rwxr-xr-xllvm/utils/shuffle_fuzz.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/utils/shuffle_fuzz.py b/llvm/utils/shuffle_fuzz.py
index 1f1a0478f2b..b70530a0ed3 100755
--- a/llvm/utils/shuffle_fuzz.py
+++ b/llvm/utils/shuffle_fuzz.py
@@ -17,13 +17,14 @@ import argparse
import itertools
import random
import sys
+import uuid
def main():
parser = argparse.ArgumentParser(description=__doc__)
- parser.add_argument('seed',
- help='A string used to seed the RNG')
parser.add_argument('-v', '--verbose', action='store_true',
help='Show verbose output')
+ parser.add_argument('--seed', default=str(uuid.uuid4()),
+ help='A string used to seed the RNG')
parser.add_argument('--max-shuffle-height', type=int, default=16,
help='Specify a fixed height of shuffle tree to test')
parser.add_argument('--no-blends', dest='blends', action='store_false',
OpenPOWER on IntegriCloud