Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
84403fe7
Commit
84403fe7
authored
Sep 07, 2010
by
Pieter Noordhuis
Browse files
Allow a random seed argument for the ziplist test binary
parent
169d2ef1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ziplist.c
View file @
84403fe7
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment