From owner-freebsd-hackers Sun Oct 1 13:11:41 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA26202 for hackers-outgoing; Sun, 1 Oct 1995 13:11:41 -0700 Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id NAA26181 for ; Sun, 1 Oct 1995 13:11:34 -0700 Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA20224; Sun, 1 Oct 1995 13:05:21 -0700 From: Terry Lambert Message-Id: <199510012005.NAA20224@phaeton.artisoft.com> Subject: Re: How to get to the hardware? To: mark@grondar.za (Mark Murray) Date: Sun, 1 Oct 1995 13:05:21 -0700 (MST) Cc: hackers@FreeBSD.ORG In-Reply-To: <199510010904.LAA00617@grumble.grondar.za> from "Mark Murray" at Oct 1, 95 11:04:53 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 782 Sender: owner-hackers@FreeBSD.ORG Precedence: bulk > I am working on a device (/dev/random) to give truly nasty random numbers > for crypto/security use, and it is mostly going OK. I have some code > written by Theodore Ts'o, and it is good stuff, but it is for the Linux > kernel. Could someone please suggest to me the best way of doing the > following in the FreeBSD kernel: (I am not sure I like the concept of just > messing with the timer directly, and yes, I have had a look at microtime.s) > The bits I do not line are the outb_p() and inb_p(). There _has_ to be a > better way... The code shown is pseudo-random. What's wrong with the linear congruential algorithm in ran48/drand48? Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.