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
dc1bc0f4
Commit
dc1bc0f4
authored
Apr 23, 2020
by
antirez
Browse files
ACL GENPASS: emit 256 bits instead of 128.
parent
889eaba2
Changes
1
Show whitespace changes
Inline
Side-by-side
src/acl.c
View file @
dc1bc0f4
...
...
@@ -1819,7 +1819,7 @@ void aclCommand(client *c) {
dictReleaseIterator(di);
setDeferredArrayLen(c,dl,arraylen);
} else if (!strcasecmp(sub,"genpass") && c->argc == 2) {
char
pass
[
32
];
/*
128
bits of actual pseudo random data. */
char pass[
64
]; /*
256
bits of actual pseudo random data. */
getRandomHexChars(pass,sizeof(pass));
addReplyBulkCBuffer(c,pass,sizeof(pass));
} else if (!strcasecmp(sub,"log") && (c->argc == 2 || c->argc ==3)) {
...
...
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