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
f6cf08e5
Unverified
Commit
f6cf08e5
authored
Sep 25, 2019
by
Salvatore Sanfilippo
Committed by
GitHub
Sep 25, 2019
Browse files
Merge pull request #6402 from mieko/unstable
Seed SipHash with 128-bit key
parents
8a531ced
0a4d2bbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
f6cf08e5
...
...
@@ -4788,9 +4788,9 @@ int main(int argc, char **argv) {
srand
(
time
(
NULL
)
^
getpid
());
gettimeofday
(
&
tv
,
NULL
);
char
hashseed
[
16
];
getRandom
HexChar
s
(
hashseed
,
sizeof
(
hashseed
));
dictSetHashFunctionSeed
(
(
uint8_t
*
)
hashseed
);
uint8_t
hashseed
[
16
];
getRandom
Byte
s
(
hashseed
,
sizeof
(
hashseed
));
dictSetHashFunctionSeed
(
hashseed
);
server
.
sentinel_mode
=
checkForSentinelMode
(
argc
,
argv
);
initServerConfig
();
ACLInit
();
/* The ACL subsystem must be initialized ASAP because the
...
...
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