Date: Wed, 6 Feb 2002 00:55:40 +0300 From: "Andrey A. Chernov" <ache@nagual.pp.ru> To: Alfred Perlstein <bright@mu.org> Cc: Mark Murray <mark@grondar.za>, 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: <20020205215540.GB8579@nagual.pp.ru> In-Reply-To: <20020205134833.T59017@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>
next in thread | previous in thread | raw e-mail | index | archive | help
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(). -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020205215540.GB8579>