From owner-freebsd-alpha Tue Nov 30 11:48:52 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from sstar.com (sstar.com [209.102.160.1]) by hub.freebsd.org (Postfix) with ESMTP id 29B20159F3 for ; Tue, 30 Nov 1999 11:48:50 -0800 (PST) (envelope-from king@sstar.com) Received: from JKING ([134.132.75.164]) by sstar.com with ESMTP (IPAD 2.52) id 5289100; Tue, 30 Nov 1999 13:48:48 -0600 Message-Id: <4.2.0.58.19991130134545.00a43780@mail.sstar.com> X-Sender: king@mail.sstar.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Tue, 30 Nov 1999 13:48:48 -0600 To: dima@rdy.com, alpha@freebsd.org From: Jim King Subject: Re: arc4random && read_random In-Reply-To: <199911301916.LAA70253@sivka.rdy.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 11:16 AM 11/30/1999 -0800, Dima Ruban wrote: >Hey guys! > >Is anybody going to do something about Subj.? Recent "random pids" change >broke kernel on alpha. >I guess, quick and dirty hack world be to add arc4random.c and write a >dummy version of read_random() until somebody will actually merge >i386 stuff to alpha. > >-- dima 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message