Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!mrlaxs.mrl.uiuc.edu!andreess From: andreess@mrlaxs.mrl.uiuc.edu (Marc Andreessen) Newsgroups: comp.unix.aix Subject: Re: drand48() Keywords: BUG, work as designed Message-ID: <1991May8.233125.238@ux1.cso.uiuc.edu> Date: 8 May 91 23:31:25 GMT References: <1991May08.214654.26143@lynx.CS.ORST.EDU> <189@shasta.Stanford.EDU> Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois, Urbana Lines: 22 In article <189@shasta.Stanford.EDU> jackk@shasta.Stanford.EDU (jackk) writes: >Please read the manual pages for this function. The SUN manual says >quite clearly: > >srand48(), seed48(), and lcong48() are initialization entry > points, one of which should be invoked before either > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > drand48(), lrand48(), or mrand48() is called. > ^^^^^^^^^^^^^^^^ Nope, not the case. Quoting from the AIX docs: (Although it is not recommended practice, constant default initializer values are supplied automatically if the drand48, lrand48 or mrand48 subroutines are called without first calling an initialization subroutine.) Marc -- Marc Andreessen___________University of Illinois Materials Research Laboratory Internet: andreessen@uimrl7.mrl.uiuc.edu____________Bitnet: andreessen@uiucmrl