Commit 90ffda7e authored by Marc Cornellà's avatar Marc Cornellà
Browse files

fix(genpass): use `log()` instead of `log2()` for zsh < 5.6 (#9548)

Fixes #9548
parent e9991c6a
...@@ -43,7 +43,7 @@ fi ...@@ -43,7 +43,7 @@ fi
# Figure out how many words we need for 128 bits of security margin. # Figure out how many words we need for 128 bits of security margin.
# Each word adds log2($#words) bits. # Each word adds log2($#words) bits.
local -i n=$((ceil(128. / log2($#words)))) local -i n=$((ceil(128. / (log($#words) / log(2)))))
{ {
local c local c
......
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