From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro and random numbers. Date: Tue, 15 Feb 2000 09:44:14 +0200 Organization: NetVision Israel Lines: 14 Message-ID: References: <38A020E4 DOT 9D28E963 AT tiscalinet DOT it> NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 950600840 5987 199.203.121.2 (15 Feb 2000 07:47:20 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 15 Feb 2000 07:47:20 GMT X-Sender: eliz AT is In-Reply-To: To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 14 Feb 2000, Damian Yerrick wrote: > 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? Yes. > What about collisions with other compilers' libc Don't call the functions `random', `srandom', etc. Rename them to `my_random' or something, and you don't have to worry about name-space collisions. If only a specific module uses an RNG, you can simply make them static, then even renaming isn't necessary.