From owner-freebsd-hackers Tue Oct 8 13:07:34 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA20834 for hackers-outgoing; Tue, 8 Oct 1996 13:07:34 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id NAA20822 for ; Tue, 8 Oct 1996 13:07:20 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA16844; Tue, 8 Oct 1996 13:03:46 -0700 From: Terry Lambert Message-Id: <199610082003.NAA16844@phaeton.artisoft.com> Subject: Re: I plan to change random() for -current (was Re: rand() and random()) To: jmacd@CS.Berkeley.EDU (Josh MacDonald) Date: Tue, 8 Oct 1996 13:03:46 -0700 (MST) Cc: terry@lambert.org, freebsd-hackers@freebsd.org In-Reply-To: <199610081939.MAA20041@paris.CS.Berkeley.EDU> from "Josh MacDonald" at Oct 8, 96 12:39:20 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > 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 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.