Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!chinacat!sequoia!rpp386!jfh From: jfh@rpp386.cactus.org (John F Haugh II) Newsgroups: comp.unix.aix Subject: Re: fortune data file and fortune command Message-ID: <19330@rpp386.cactus.org> Date: 23 May 91 13:20:58 GMT References: <1991May22.215452.7261@unlinfo.unl.edu> Reply-To: jfh@rpp386.cactus.org (John F Haugh II) Distribution: na Organization: Lone Star Cat Emporium and BBQ Grill Lines: 16 X-Clever-Slogan: Help Prevent Robbery. Tax the IRS. In article <1991May22.215452.7261@unlinfo.unl.edu> james@engrss2.unl.edu (James Nau) writes: >Does anyone know what (and why?) fortune changes in the >/usr/games/lib/fortune/fortune.dat file? It changes only the first >"line" (I think it's in the first 128 bytes). Is it writing a counter >so that I don't see the same fortune twice? Yes. The source code to the fortune program has been posted, and is available from BSD as well. You might want to acquire a copy and examine it. -- John F. Haugh II | Distribution to | UUCP: ...!cs.utexas.edu!rpp386!jfh Ma Bell: (512) 255-8251 | GEnie PROHIBITED :-) | Domain: jfh@rpp386.cactus.org "If liberals interpreted the 2nd Amendment the same way they interpret the rest of the Constitution, gun ownership would be mandatory."