mirror of https://mirror.osredm.com/root/redis.git
Allow a random seed argument for the ziplist test binary
This commit is contained in:
parent
169d2ef1e0
commit
84403fe7c1
|
@ -870,6 +870,10 @@ int main(int argc, char **argv) {
|
|||
unsigned int elen;
|
||||
long long value;
|
||||
|
||||
/* If an argument is given, use it as the random seed. */
|
||||
if (argc == 2)
|
||||
srand(atoi(argv[1]));
|
||||
|
||||
zl = createIntList();
|
||||
ziplistRepr(zl);
|
||||
|
||||
|
|
Loading…
Reference in New Issue