Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!rpi!batcomputer!riley From: riley@batcomputer.tn.cornell.edu (Daniel S. Riley) Newsgroups: comp.sys.amiga.tech Subject: Re: Lattice help - drand48() = GURU! Summary: known bug, 5.04a should fix it Message-ID: <9662@batcomputer.tn.cornell.edu> Date: 3 Feb 90 23:59:43 GMT References: <2290003@hp-ptp.HP.COM> Reply-To: riley@tcgould.tn.cornell.edu (Daniel S. Riley) Organization: Cornell Theory Center, Cornell University, Ithaca NY Lines: 21 In article <2290003@hp-ptp.HP.COM> jimg@hp-ptp.HP.COM (Jim_Garrison) writes: >I have the Lattice 5.04a 'C' compiler, and I've been having a problem with >one of the supplied random number generators - drand48(). Does anyone know >if there's a known problem with this function? This seems to be a popular problem... This is a known problem with the 5.04 math libraries. I *thought* that the 5.04a patch was supposed to fix it, and your example program worked fine for me (no gurus). You should double check that you installed all the 5.04a library patches correctly, especially the replacement for the CXV35 routine in lcm.lib. For everyone else having this problem, get the 5.04a patch from Lattice, either from their bulletin board, BIX (I guess), or call Lattice customer service. No, I have no affiliation with Lattice. -Dan Riley (riley@tcgould.tn.cornell.edu, cornell!batcomputer!riley) -Wilson Lab, Cornell University