Skip to content
Browse files

Fixed --seed argument handling so that it actually works, now

  • Loading branch information...
1 parent a560629 commit 3aa9d12206242181988e3739805ebfad45c37f88 @stotch stotch committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 bin/generate_cluster_xml.py
View
5 bin/generate_cluster_xml.py
@@ -5,7 +5,7 @@
import argparse
# Get a random seed
-seed = int(random.randint(00000000001,99999999999))
+rseed = int(random.randint(00000000001,99999999999))
# Setup and argument parser
parser = argparse.ArgumentParser(description='Build a voldemort cluster.xml.')
@@ -23,7 +23,7 @@
parser.add_argument('-H', '--http-port', type=int, default=6665,
dest='http_port', help='http port number')
genType = parser.add_mutually_exclusive_group()
-genType.add_argument('-S', '--seed', type=int, default=seed, dest='seed',
+genType.add_argument('-S', '--seed', type=int, default=rseed, dest='seed',
help='seed for randomizing partition distribution')
genType.add_argument('-l', '--loops', type=int, default=1000, dest='loops',
help='loop n times, using a different random seed every \
@@ -50,6 +50,7 @@
http_port = args.http_port
sock_port = args.sock_port
admin_port = args.admin_port
+seed = args.seed
# Generate the full list of partition IDs
part_ids = range(nodes * partitions)

0 comments on commit 3aa9d12

Please sign in to comment.
Something went wrong with that request. Please try again.