Commit dc1bc0f4 authored by antirez's avatar antirez
Browse files

ACL GENPASS: emit 256 bits instead of 128.

parent 889eaba2
...@@ -1819,7 +1819,7 @@ void aclCommand(client *c) { ...@@ -1819,7 +1819,7 @@ void aclCommand(client *c) {
dictReleaseIterator(di); dictReleaseIterator(di);
setDeferredArrayLen(c,dl,arraylen); setDeferredArrayLen(c,dl,arraylen);
} else if (!strcasecmp(sub,"genpass") && c->argc == 2) { } 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)); getRandomHexChars(pass,sizeof(pass));
addReplyBulkCBuffer(c,pass,sizeof(pass)); addReplyBulkCBuffer(c,pass,sizeof(pass));
} else if (!strcasecmp(sub,"log") && (c->argc == 2 || c->argc ==3)) { } else if (!strcasecmp(sub,"log") && (c->argc == 2 || c->argc ==3)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment