Commit 52b52a35 authored by charsyam's avatar charsyam
Browse files

fix randstring bug

parent 49b64523
...@@ -1041,7 +1041,8 @@ void pop(unsigned char *zl, int where) { ...@@ -1041,7 +1041,8 @@ void pop(unsigned char *zl, int where) {
} }
int randstring(char *target, unsigned int min, unsigned int max) { int randstring(char *target, unsigned int min, unsigned int max) {
int p, len = min+rand()%(max-min+1); int p = 0;
int len = min+rand()%(max-min+1);
int minval, maxval; int minval, maxval;
switch(rand() % 3) { switch(rand() % 3) {
case 0: case 0:
......
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