From owner-freebsd-current Sun Jan 20 13:54:23 2002 Delivered-To: freebsd-current@freebsd.org Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.139.170]) by hub.freebsd.org (Postfix) with ESMTP id 84C7A37B404 for ; Sun, 20 Jan 2002 13:54:20 -0800 (PST) Received: (from uucp@localhost) by storm.FreeBSD.org.uk (8.11.6/8.11.6) with UUCP id g0KLsHf90729; Sun, 20 Jan 2002 21:54:17 GMT (envelope-from mark@grondar.za) Received: from grondar.za (mark@localhost [127.0.0.1]) by grimreaper.grondar.org (8.11.6/8.11.6) with ESMTP id g0KLp7t34081; Sun, 20 Jan 2002 21:51:07 GMT (envelope-from mark@grondar.za) Message-Id: <200201202151.g0KLp7t34081@grimreaper.grondar.org> To: Terry Lambert Cc: current@freebsd.org Subject: Re: Step1, pam_unix srandomdev fix for review References: <3C4B3775.1AFA318@mindspring.com> In-Reply-To: <3C4B3775.1AFA318@mindspring.com> ; from Terry Lambert "Sun, 20 Jan 2002 13:32:37 PST." Date: Sun, 20 Jan 2002 21:51:07 +0000 From: Mark Murray Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > Second step is effectively damages srandom(3) RNG state. > > Since the library is a totally encapsulated usage, it makes sense > for it to save and restore state aroun its use of the functions, > which would effectively allow concurrent use of the generator > with other code that uses it. > > Other code that cares about the state should do the same. True but not trivial. I'd be happy to commit working patches :-) M -- o Mark Murray \_ FreeBSD Services Limited O.\_ Warning: this .sig is umop ap!sdn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message