summaryrefslogtreecommitdiff
path: root/games/caesar/caesar.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2017-08-10 17:24:31 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2017-08-10 17:24:31 +0000
commitb58875a3feea89ae8524c083bde358f8702060bc (patch)
tree606a708f1b14fa5f9aa8b9484dae72c7bb0e64e6 /games/caesar/caesar.c
parentec2d902fe1865ce6cd2c21485019ebd8012b5eb0 (diff)
convert source code frequencies to match those in the man page
Diffstat (limited to 'games/caesar/caesar.c')
-rw-r--r--games/caesar/caesar.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/games/caesar/caesar.c b/games/caesar/caesar.c
index f55cb221a52..7e6f89505c7 100644
--- a/games/caesar/caesar.c
+++ b/games/caesar/caesar.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: caesar.c,v 1.19 2016/02/26 12:10:49 mestre Exp $ */
+/* $OpenBSD: caesar.c,v 1.20 2017/08/10 17:24:30 tedu Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -52,13 +52,12 @@
islower(ch) ? ('a' + (ch - 'a' + perm) % 26) : ch
/*
- * letter frequencies (taken from some unix(tm) documentation)
- * (unix is a trademark of Bell Laboratories)
+ * letter frequencies
*/
double stdf[26] = {
- 7.97, 1.35, 3.61, 4.78, 12.37, 2.01, 1.46, 4.49, 6.39, 0.04,
- 0.42, 3.81, 2.69, 5.92, 6.96, 2.91, 0.08, 6.63, 8.77, 9.68,
- 2.62, 0.81, 1.88, 0.23, 2.07, 0.06
+ 8.1, 1.4, 2.7, 3.8, 13.0, 2.9, 2.0, 5.2, 6.3, 0.13,
+ 0.4, 3.4, 2.5, 7.1, 7.9, 1.9, 0.11, 6.8, 6.1, 10.5,
+ 2.4, 0.9, 1.5, 0.15, 1.9, 0.07
};
__dead void printit(int);