diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2021-01-18 13:16:40 -0700 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2021-01-18 13:16:40 -0700 |
commit | c6e754a3119b7273a57f0cfed38e85303662d26b (patch) | |
tree | c50ae3c6b0271ec88e964d3a57199ea37e63bf0b /plugins/genpass/genpass-xkcd | |
parent | fb45741fc1dbd40dd2be72bc35a28c6ee8f3f7a5 (diff) | |
parent | efcbd9f3480a28ec69c607c46adcbfd8d230ac9f (diff) | |
download | zsh-c6e754a3119b7273a57f0cfed38e85303662d26b.tar.gz zsh-c6e754a3119b7273a57f0cfed38e85303662d26b.tar.bz2 zsh-c6e754a3119b7273a57f0cfed38e85303662d26b.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'plugins/genpass/genpass-xkcd')
-rwxr-xr-x | plugins/genpass/genpass-xkcd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/genpass/genpass-xkcd b/plugins/genpass/genpass-xkcd index a486ccb40..ed0397138 100755 --- a/plugins/genpass/genpass-xkcd +++ b/plugins/genpass/genpass-xkcd @@ -43,7 +43,7 @@ fi # Figure out how many words we need for 128 bits of security margin. # Each word adds log2($#words) bits. -local -i n=$((ceil(128. / log2($#words)))) +local -i n=$((ceil(128. / (log($#words) / log(2))))) { local c |