From: Vik Heyndrickx Newsgroups: comp.os.msdos.djgpp Subject: Re: drand48, srand48?? Date: Fri, 29 Aug 1997 13:17:18 +0200 Organization: University of Ghent, Belgium Lines: 18 Message-ID: <3406AFBE.40E3@rug.ac.be> References: <3404708E DOT 4A01 AT nortel DOT com> NNTP-Posting-Host: eduserv1.rug.ac.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Shane Crowe wrote: > > Our GNU C compiler setup for Unix has support for drand48 and > srand48 functions. The 48 is for 48-bit math. Does this exist > for djgpp? If so, where? This would make porting stuff over to > DOS easier. Not AFAIK, since djgpp has 32 bit and 64 bit integers and no 48 bit integers this would be not very useful. Maybe look at the implementation of rand and write your own one. Is it really that important the rand function are 48 bit? Bye, -- +----------------+ | Vik Heyndrickx | +----------------+