mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 16:48:27 -05:00
fix randstring bug
This commit is contained in:
parent
49b6452351
commit
52b52a3508
@ -1041,7 +1041,8 @@ void pop(unsigned char *zl, int where) {
|
||||
}
|
||||
|
||||
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;
|
||||
switch(rand() % 3) {
|
||||
case 0:
|
||||
|
Loading…
Reference in New Issue
Block a user