From owner-cvs-all Tue Feb 5 13:58:28 2002 Delivered-To: cvs-all@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id A199637B425; Tue, 5 Feb 2002 13:58:20 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 77B6E10DDF8; Tue, 5 Feb 2002 13:58:20 -0800 (PST) Date: Tue, 5 Feb 2002 13:58:20 -0800 From: Alfred Perlstein To: "Andrey A. Chernov" Cc: Mark Murray , des@freebsd.org, cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/lib/libpam/modules/pam_unix pam_unix.c Message-ID: <20020205135820.U59017@elvis.mu.org> References: <20020205184059.GA6785@nagual.pp.ru> <200202051949.g15Jnhs12003@greenpeace.grondar.org> <20020205205907.GA8005@nagual.pp.ru> <20020205214703.GA8579@nagual.pp.ru> <20020205134833.T59017@elvis.mu.org> <20020205215540.GB8579@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020205215540.GB8579@nagual.pp.ru>; from ache@nagual.pp.ru on Wed, Feb 06, 2002 at 12:55:40AM +0300 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Andrey A. Chernov [020205 13:55] wrote: > On Tue, Feb 05, 2002 at 13:48:33 -0800, Alfred Perlstein wrote: > > > > I understand the issue you're bringing up, would it make sense > > to create/utilize a save/restore random() context function? > > I don't think it worth to try. We already have acr4random() which is: > > 1) Safe to call from libraries. > 2) Have the same speed compared to random() (or even faster) > 3) Auto-seded from true randomness > > My patch for this thing just literally replace random() with > arc4random() and remove srandomdev(). this makes sense, what is the problem with doing so? -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductable donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message