diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-08-13 10:00:46 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-08-13 10:00:46 +0000 |
commit | ba20fb11a78f1132ad7047459e0d3c0bba4721ae (patch) | |
tree | 7c646e598ed56c13db21660b52d7b50878a561b9 /utils/shuffle_fuzz.py | |
parent | 5e5aa9438d3b98465e804660308533dabc3dff65 (diff) |
[shuffle] Make the seed an optional component and add support for
letting the python very directly compute a UUID.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/shuffle_fuzz.py')
-rwxr-xr-x | utils/shuffle_fuzz.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/shuffle_fuzz.py b/utils/shuffle_fuzz.py index 1f1a0478f2b..b70530a0ed3 100755 --- a/utils/shuffle_fuzz.py +++ b/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', |