提交 84403fe7 编写于 作者: P Pieter Noordhuis

Allow a random seed argument for the ziplist test binary

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册