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;
|
unsigned int elen;
|
||||||
long long value;
|
long long value;
|
||||||
|
|
||||||
|
/* If an argument is given, use it as the random seed. */
|
||||||
|
if (argc == 2)
|
||||||
|
srand(atoi(argv[1]));
|
||||||
|
|
||||||
zl = createIntList();
|
zl = createIntList();
|
||||||
ziplistRepr(zl);
|
ziplistRepr(zl);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user