Date: Tue, 8 Oct 1996 13:03:46 -0700 (MST) From: Terry Lambert <terry@lambert.org> To: jmacd@CS.Berkeley.EDU (Josh MacDonald) Cc: terry@lambert.org, freebsd-hackers@freebsd.org Subject: Re: I plan to change random() for -current (was Re: rand() and random()) Message-ID: <199610082003.NAA16844@phaeton.artisoft.com> In-Reply-To: <199610081939.MAA20041@paris.CS.Berkeley.EDU> from "Josh MacDonald" at Oct 8, 96 12:39:20 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> > For instance, they could use the better rand() function rand48 instead.
>
> paris-~ % uname -a
> SunOS paris.CS. 4.1.3 6 sun4c
> paris-~ % cat test.c
> int main()
> {
>
> rand48();
>
> }
> paris-~ % gcc test.c
> collect2: ld returned 2 exit status
> ld: Undefined symbol
> _rand48
> paris-~ %
>
> FALSE.
hecate% cat correctly_written_test.c
#include <stdlib.h>
int
main()
{
return( (int)drand48());
}
hecate% gcc correctly_written_test.c
hecate%
TRUE
Regards,
Terry Lambert
terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610082003.NAA16844>
