Subject: CVS commit: basesrc/games/fortune/fortune
To: None <source-changes@netbsd.org>
From: Andrew Brown <atatat@netbsd.org>
List: source-changes
Date: 08/15/2001 20:25:43
Module Name:	basesrc
Committed By:	atatat
Date:		Wed Aug 15 17:25:43 UTC 2001

Modified Files:
	basesrc/games/fortune/fortune: fortune.c

Log Message:
Change -a to mean all files, as opposed to just a few more files.

Modify the regex handling so that we can match fortunes in rot13'ed
databases (rot13 the pattern and maintain a second compiled pattern)
and rot13 the rot13'ed fortune before output.

Move the rot13 code to a function since it's now used in three places
instead of just one.

Initialize posfile in one place since it appears to get used without
being initialized when using debugging.

Make a *slight* improvement to the random seeding by squaring the pid
and then xor'ing against the current time, since just xor'ing the time
with the pid will not change if they both advance by one from "odd" to
"even".


To generate a diff of this commit:
cvs rdiff -r1.29 -r1.30 basesrc/games/fortune/fortune/fortune.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.