Allow a random seed argument for the ziplist test binary

This commit is contained in:
Pieter Noordhuis 2010-09-07 00:08:42 +02:00
parent 169d2ef1e0
commit 84403fe7c1

View File

@ -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);