summaryrefslogtreecommitdiffstats
path: root/adventure
diff options
context:
space:
mode:
authoratatat <atatat@NetBSD.org>2001-08-15 17:25:42 +0000
committeratatat <atatat@NetBSD.org>2001-08-15 17:25:42 +0000
commit013f920d2261c2e92da2a55d27894372949499b3 (patch)
tree377716816eba03817880e43531e61dbed211b890 /adventure
parent9b0e947223e301e40bbfb293ad1811aeee55cd15 (diff)
downloadbsdgames-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 'adventure')
0 files changed, 0 insertions, 0 deletions