pwgen: add comment about entropy calculation
authorPeter Gervai <grin@grin.hu>
Wed, 15 May 2024 09:04:25 +0200
changeset 13 9ec5ecfe4347
parent 12 5301f455fc7f
child 14 d2d8803e35ec
pwgen: add comment about entropy calculation
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
+##