Really, unless you need random numbers for reproducable statistical
experiments, you might as well read random numbers from /dev/urandom,
particularly if there might be security implications. It's easy to
whip up a rand48() that does this, and link against that so you don't
need to change the code.
John
On Wed, Mar 27, 2002 at 07:30:40AM -0800, Kay Tiong Khoo wrote:
> They've been missing since the release of X. Will be in the next release.
>
> Workaround is to borrow the rand48 source files from FreeBSD and make
> your own rand48 library. A real pain.
>
> Regards
> Kay Tiong
>
> On Tuesday, March 26, 2002, at 09:44 PM, unix-porting-
> email@hidden wrote:
>
> > Message: 15
> > Date: Wed, 27 Mar 2002 16:41:44 +1100
> > Subject: rand48 routines
> > From: Jon McCormack <email@hidden>
> > To: email@hidden
> >
> > Hello,
> > I am trying to compile some code that uses the rand48 family of random
> > number generators. If I do a "man 3 rand48" I get:
> > NAME
> > drand48, erand48, lrand48, nrand48, mrand48, jrand48, srand48,
> > seed48,
> > lcong48 - pseudo random number generators and initialization
> > routines
> >
> > SYNOPSIS
> > #include <stdlib.h>
> >
> > double
> > drand48(void)
> > ... etc.
> >
> > However, at the linking stage the symbols in this library are undefined.
> > Are they really there somewhere or are they missing? Any suggestions on
> > which library might be needed to link with?
> > Thanks in advance.
> >
> > Jon.
> > --
> > Jon McCormack
> > Monash University, Australia
> >
> >
> > --__--__--
> _______________________________________________
> unix-porting mailing list | email@hidden
> Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
Do not post admin requests to the list. They will be ignored.