From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro and random numbers. Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <38A020E4 DOT 9D28E963 AT tiscalinet DOT it> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 25 X-Trace: /Kw5eCmJn5R4kuschYXLgZFtmu4JFLoqAVjCuqPoeex/R6ZUazsmbf+GLsgV5jPFZlmeoh/nKCcM!NhbAqxteryfZPbejNxyt0arijNxoEcyUKfipypO9y13exJNcRvuQli/vvvbresOYXf7bI7X4rQZ0!6Ub9La4= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Mon, 14 Feb 2000 08:01:10 GMT Distribution: world Date: Mon, 14 Feb 2000 08:01:10 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sun, 13 Feb 2000 10:00:09 +0200, Eli Zaretskii wrote: > >On Thu, 10 Feb 2000, Damian Yerrick wrote: > >> >For comparison, `rand' has a period of at least 2^31, and `random' has >> >much larger period. >> >> But will these PRNGs have the same sequence on all platforms? > >No, not unless you use the same sources for `rand' and `random' on all >platforms. If you use different library sources, the random series >will be different. So I can include DJGPP's random() (with the ad clause removed) in my GPL'd game, and it will work on other 32-bit compilers? What about collisions with other compilers' libc, or do they all give modules (*.o*) precedence over libraries (*.lib, *.a)? -- Damian Yerrick http://yerricde.tripod.com/ Comment on story ideas: http://home1.gte.net/frodo/quickjot.html AOL is sucks! Find out why: http://anti-aol.org/faqs/aas/ View full sig: http://www.rose-hulman.edu/~yerricde/sig.html