drand48()

Marc Andreessen andreess at mrlaxs.mrl.uiuc.edu
Thu May 9 09:31:25 AEST 1991


In article <189 at shasta.Stanford.EDU> jackk at 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 at uimrl7.mrl.uiuc.edu____________Bitnet: andreessen at uiucmrl



More information about the Comp.unix.aix mailing list