mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
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…
x
Reference in New Issue
Block a user