From owner-freebsd-alpha Tue Nov 30 11:55:46 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from sivka.rdy.com (unknown [207.21.31.82]) by hub.freebsd.org (Postfix) with ESMTP id 8254314C13; Tue, 30 Nov 1999 11:55:44 -0800 (PST) (envelope-from dima@sivka.rdy.com) Received: (from dima@localhost) by sivka.rdy.com (8.9.3/8.9.3) id LAA70456; Tue, 30 Nov 1999 11:55:44 -0800 (PST) (envelope-from dima) Message-Id: <199911301955.LAA70456@sivka.rdy.com> Subject: Re: arc4random && read_random In-Reply-To: <19991130195058.2A8D114D0F@hub.freebsd.org> from "Jonathan M. Bresler" at "Nov 30, 1999 11:50:58 am" To: "Jonathan M. Bresler" Date: Tue, 30 Nov 1999 11:55:43 -0800 (PST) Cc: king@sstar.com, dima@rdy.com, alpha@FreeBSD.ORG Organization: HackerDome Reply-To: dima@rdy.com From: dima@rdy.com (Dima Ruban) X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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. > > jmb > -- dima To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message