From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: LD errors compiling source from gnupg-1.0.1.tar.gz Date: Tue, 29 Feb 2000 11:05:10 +0200 Organization: NetVision Israel Lines: 27 Message-ID: References: <83bt52bdud DOT fsf AT mercury DOT st DOT hmc DOT edu> NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 951815281 27014 199.203.121.2 (29 Feb 2000 09:08:01 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 29 Feb 2000 09:08:01 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, 28 Feb 2000, Damian Yerrick wrote: > >I think there's lots of random events you could gather on a PC by > >accessing various ports and absolute memory addresses. > > Such as? I think this would be useful. First, you can access the same sources as Linux does: the microphone and the keyboard. (You can easily modify the standard DJGPP keyboard handler to stash away the keystrokes for you.) Then you can access random video memory locations. You can sample the mouse position and/or read its motion counters/button press data. You can look at the transfer buffer. There are also many places in the so-called DOS List-of-Lists internal data structure which can be used as a source of random data. For example, the last directory entry read by DOS, the SFT (System File Table) with the info about all open files, data read from disk that is buffered by DOS, and much more. > 1. time(NULL) time(NULL) is not really random, except if sampled at random points in time. If time(NULL) is good enough, reading the timer counter is even better.