mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Merge pull request #776 from charsyam/ziplist-bug
fix randstring bug in ziplist.c
This commit is contained in:
commit
7d626d4975
@ -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