Path: utzoo!utgpu!attcan!uunet!wyse!vsi1!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!oberon!sm.unisys.com!csun!polyslo!hoyt From: hoyt@polyslo.UUCP (Sir Hoyt) Newsgroups: comp.sources.games.bugs Subject: Re: mpss on SYS V ??? Message-ID: <3382@polyslo.UUCP> Date: 29 Jul 88 23:12:06 GMT References: <2843@tekred.TEK.COM> <301@pcsbst.UUCP> <302@pcsbst.UUCP> Reply-To: hoyt@polyslo.calpoly.edu.UUCP (Sir Hoyt) Organization: WanderLand, San Luis Obispo Lines: 27 In article <302@pcsbst.UUCP> sws4!torsten@pcsbst.UUCP (torsten) writes: >In article <301@pcsbst.UUCP> cochise!mike@pcsbst.UUCP (Mike Schroeder) writes: >>"Memory fault" ;-( > Memory fault. > Perhaps that's the game ?-) > Torsten. The reason for the 'Memory fault' is the impropper use of time(3) in slave.c at line 322. It was: srand(time() % 10); sleep(rand() % 10); It should be: srand(time(0L) % 10); sleep(rand() % 10); Note the missing '0L' in the first case. -- John H. Pochmara A career is great, UUCP: {csun,voder,trwind}!polyslo!hoyt But you can't run your Internet: hoyt@polyslo.CalPoly.EDU fingers through its hair -Graffiti 4/13/83