Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
90ffda7e
Commit
90ffda7e
authored
Dec 27, 2020
by
Marc Cornellà
Browse files
fix(genpass): use `log()` instead of `log2()` for zsh < 5.6 (#9548)
Fixes #9548
parent
e9991c6a
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/genpass/genpass-xkcd
View file @
90ffda7e
...
...
@@ -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
.
/
log
2
(
$#words
))
))
local
-i
n
=
$((
ceil
(
128
.
/
(
log
(
$#words
)
/
log
(
2
))
)))
{
local
c
...
...
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