# HG changeset patch # User Peter Gervai # Date 1715756665 -7200 # Node ID 9ec5ecfe4347345c0961393de49680bed94c78c5 # Parent 5301f455fc7f716541c54b235a36640ce13baa2f pwgen: add comment about entropy calculation diff -r 5301f455fc7f -r 9ec5ecfe4347 pwgen.pl --- a/pwgen.pl Wed Apr 12 20:16:17 2023 +0200 +++ b/pwgen.pl Wed May 15 09:04:25 2024 +0200 @@ -64,3 +64,13 @@ print " nolf: don't print a linefeed after the last word\n"; exit; } + + +## syllables: 4 + rnd(3) - ~1.5 bit +## cons: rnd(20) - 4.32 bit +## vow: rnd(5) - 2.32 bit +## cons2: rnd(20) * 20% - ~5.00 bit +## +## - ~ 13.14 bit/syllable +## 4s: 52.5 b, 5s: 65.7 b, 6s: 78.8 b, 7s: 92 b +##