From owner-freebsd-alpha Tue Nov 30 14:42:23 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id 62BE314C99; Tue, 30 Nov 1999 14:42:17 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id WAA75288; Tue, 30 Nov 1999 22:48:09 GMT (envelope-from dfr@nlsystems.com) Date: Tue, 30 Nov 1999 22:48:09 +0000 (GMT) From: Doug Rabson To: Dima Ruban Cc: "Jonathan M. Bresler" , king@sstar.com, alpha@freebsd.org Subject: Re: arc4random && read_random In-Reply-To: <199911301955.LAA70456@sivka.rdy.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, 30 Nov 1999, Dima Ruban wrote: > Jonathan M. Bresler writes: > > > > > > I hacked around the problem by adding arc4random.c to > > > sys/alpha/conf/files.alpha, and commenting out the call to read_random() in > > > arc4random.c (replacing it with "r = 0;" to initialize the return value). > > > > > > I agree that implementing read_random for Alpha - even a dummy version - > > > would be a better way to do it (but my way was quicker :-). > > > > > > Jim > > > > #ifdef __alpha__ > > > > worked for me > > Right, but I don't think that general population will be happy with this. > I'd rather hack _alpha-specific_ code than code that's common for all > architectures. Ideally, someone would re-work the /dev/random driver so that it wasn't x86 specific. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message