Commit 84403fe7 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Allow a random seed argument for the ziplist test binary

parent 169d2ef1
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment