Commit fab0a6aa authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Get rid of random seeds. Addresses #162.

git-svn-id: file:///svn/tokudb@1067 c7de825b-a66e-492c-adef-691d508d4ae1
parent b5ca65fe
...@@ -330,13 +330,12 @@ static void activity (void) { ...@@ -330,13 +330,12 @@ static void activity (void) {
static void usage (const char *argv1) { static void usage (const char *argv1) {
fprintf(stderr, "Usage:\n %s [ --DB-CREATE | --more ] seed ", argv1); fprintf(stderr, "Usage:\n %s [ --more ]\n", argv1);
exit(1); exit(1);
} }
int main (int argc, const char *argv[]) { int main (int argc, const char *argv[]) {
const char *progname=argv[0]; const char *progname=argv[0];
int useseed=1;
memset(&nc_key, 0, sizeof(nc_key)); memset(&nc_key, 0, sizeof(nc_key));
memset(&nc_data, 0, sizeof(nc_data)); memset(&nc_data, 0, sizeof(nc_data));
...@@ -353,12 +352,7 @@ int main (int argc, const char *argv[]) { ...@@ -353,12 +352,7 @@ int main (int argc, const char *argv[]) {
if (strcmp(argv[0], "--more")==0) { if (strcmp(argv[0], "--more")==0) {
mode = MODE_MORE; mode = MODE_MORE;
} else { } else {
errno=0; usage(progname);
char *endptr;
useseed = strtoul(argv[0], &endptr, 10);
if (errno!=0 || *endptr!=0 || endptr==argv[0]) {
usage(progname);
}
} }
argc--; argv++; argc--; argv++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment