[llvm] r215533 - [shuffle] Make the seed an optional component and add support for
Chandler Carruth
chandlerc at gmail.com
Wed Aug 13 03:00:47 PDT 2014
Author: chandlerc
Date: Wed Aug 13 05:00:46 2014
New Revision: 215533
URL: http://llvm.org/viewvc/llvm-project?rev=215533&view=rev
Log:
[shuffle] Make the seed an optional component and add support for
letting the python very directly compute a UUID.
Modified:
llvm/trunk/utils/shuffle_fuzz.py
Modified: llvm/trunk/utils/shuffle_fuzz.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/shuffle_fuzz.py?rev=215533&r1=215532&r2=215533&view=diff
==============================================================================
--- llvm/trunk/utils/shuffle_fuzz.py (original)
+++ llvm/trunk/utils/shuffle_fuzz.py Wed Aug 13 05:00:46 2014
@@ -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',
More information about the llvm-commits
mailing list