Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!amdahl!pacbell!rtech!ralph From: ralph@rtech.rtech.com (Ralph Harnden) Newsgroups: comp.sources.bugs Subject: Re: v04i110: An amazingly small C-program Message-ID: <2474@rtech.rtech.com> Date: 6 Oct 88 05:31:36 GMT References: <7656@boring.cwi.nl> <2456@mhres.mh.nl> Reply-To: ralph@rtech.UUCP (Ralph Harnden) Organization: Relational Technology Inc, Alameda CA Lines: 23 In article <2456@mhres.mh.nl> jv@mhres.mh.nl (Johan Vromans) writes: >From article <7656@boring.cwi.nl>, by tromp@cwi.nl.UUCP (John Tromp): >> Posting-number: Volume 4, Issue 110 >> Submitted-by: "John Tromp" >> Archive-name: mazemaze >... >Compile and run on a System V.3 system (NatSem 32332 based): >[lines truncated on behalf of mailers]: >} ._._._._._._._._._._._._._._._._._._._._._._._._._._._._. >} | | | | | | | | | | | | | | | | | | | | | | | | | | | | | >} | | | | | | | | | | | | | | | | | | | | | | | | | | | | | >} | | | | | | | | | | | | | | | | | | | | | | | | | | | | | >} | | | | | | | | | | | | | | | | | | | | | | | | | | | | | >} |_._._._._._._._._._._._._._._._._._._._._._._._._._._._. >... Similar results on my 3B1. Problem is rand(3C) returns int between -2**15+1 and 2**15-1, but the code expects int between 0 and 2**31-1. Change rand() to lrand48(). Or change "6<<27