mirror of
https://github.com/fluencelabs/redis
synced 2025-06-01 03:31:18 +00:00
fix randstring bug
This commit is contained in:
parent
aaf5623535
commit
847a40805f
@ -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…
x
Reference in New Issue
Block a user