diff options
author | 2001-08-15 17:25:42 +0000 | |
---|---|---|
committer | 2001-08-15 17:25:42 +0000 | |
commit | 013f920d2261c2e92da2a55d27894372949499b3 (patch) | |
tree | 377716816eba03817880e43531e61dbed211b890 /trek | |
parent | 9b0e947223e301e40bbfb293ad1811aeee55cd15 (diff) | |
download | bsdgames-darwin-013f920d2261c2e92da2a55d27894372949499b3.tar.gz bsdgames-darwin-013f920d2261c2e92da2a55d27894372949499b3.tar.zst bsdgames-darwin-013f920d2261c2e92da2a55d27894372949499b3.zip |
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".
Diffstat (limited to 'trek')
0 files changed, 0 insertions, 0 deletions