Skip to content

Commit 03984ec

Browse files
committed
[shuffle] Make the seed an optional component and add support for
letting the python very directly compute a UUID. llvm-svn: 215533
1 parent 3f92ecc commit 03984ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/utils/shuffle_fuzz.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@
1717
import itertools
1818
import random
1919
import sys
20+
import uuid
2021

2122
def main():
2223
parser = argparse.ArgumentParser(description=__doc__)
23-
parser.add_argument('seed',
24-
help='A string used to seed the RNG')
2524
parser.add_argument('-v', '--verbose', action='store_true',
2625
help='Show verbose output')
26+
parser.add_argument('--seed', default=str(uuid.uuid4()),
27+
help='A string used to seed the RNG')
2728
parser.add_argument('--max-shuffle-height', type=int, default=16,
2829
help='Specify a fixed height of shuffle tree to test')
2930
parser.add_argument('--no-blends', dest='blends', action='store_false',

0 commit comments

Comments
 (0)