From owner-svn-src-head@FreeBSD.ORG Thu Oct 11 11:43:49 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 27E3F129; Thu, 11 Oct 2012 11:43:49 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (garage.dawidek.net [91.121.88.72]) by mx1.freebsd.org (Postfix) with ESMTP id D6DA78FC18; Thu, 11 Oct 2012 11:43:48 +0000 (UTC) Received: from localhost (dkz205.neoplus.adsl.tpnet.pl [83.24.29.205]) by mail.dawidek.net (Postfix) with ESMTPSA id B280C7A7; Thu, 11 Oct 2012 13:42:35 +0200 (CEST) Date: Thu, 11 Oct 2012 13:44:25 +0200 From: Pawel Jakub Dawidek To: Eitan Adler Subject: Re: svn commit: r241373 - head/lib/libc/stdlib Message-ID: <20121011114425.GA1562@garage.freebsd.pl> References: <201210091425.q99EPFS6020787@svn.freebsd.org> <507451DE.9060909@freebsd.org> <977E1107-46D4-476F-A04D-AEFD87D1DE53@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 10.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: mdf@freebsd.org, src-committers@freebsd.org, Andrey Chernov , svn-src-all@freebsd.org, David Chisnall , svn-src-head@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Oct 2012 11:43:49 -0000 --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 09, 2012 at 01:51:05PM -0400, Eitan Adler wrote: > On 9 October 2012 13:27, wrote: > > The original behavior can be recovered by using inline assembly to > > fetch the value from a register into a local C variable; this would at > > least not rely on undefined behavior. But I agree it's of dubious > > value anyways. >=20 > I proposed this (with a patch). We want to move to not using > /dev/random and instead make a kernel system call directly. The patch > for this is not finished yet though. You should do something similar to: http://people.freebsd.org/~pjd/patches/libc_arc4random.c.patch --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl --9jxsPFA5p3P2qPhR Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlB2sRkACgkQForvXbEpPzSBnACgvG0Q0yfOpDozuqgbT3OPRV31 5YgAn2fdSXmd2XtAuNYBuIyosjEJE5Yr =mnYc -----END PGP SIGNATURE----- --9jxsPFA5p3P2qPhR--