delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/29/12:57:53

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
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: <Pine.SUN.3.91.1000229110441.22619H@is>
References: <83bt52bdud DOT fsf AT mercury DOT st DOT hmc DOT edu> <Pine DOT SUN DOT 3 DOT 91 DOT 1000228083104 DOT 8833C-100000 AT is> <eq5lbsg2u2r6p2eokssv4jo0f8cd9h89um AT 4ax DOT com>
NNTP-Posting-Host: is.elta.co.il
Mime-Version: 1.0
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: <eq5lbsg2u2r6p2eokssv4jo0f8cd9h89um@4ax.com>
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

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019