From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id E51815A8C for ; Tue, 31 Mar 2015 03:51:13 +0200 (CEST) Received: from [2001:470:8:a08:215:ff:fecc:4872] (helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YclKd-0005u1-4a; Mon, 30 Mar 2015 21:51:10 -0400 Date: Mon, 30 Mar 2015 21:51:04 -0400 From: Neil Horman To: Robert Sanford Message-ID: <20150331015104.GA12702@neilslaptop.think-freely.org> References: <1426609081-47774-1-git-send-email-rsanford@akamai.com> <20150328003821.GA13992@mhcomputing.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -2.9 (--) X-Spam-Status: No Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [RFC PATCH] eal: rte_rand yields only 62 random bits X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Mar 2015 01:51:14 -0000 On Mon, Mar 30, 2015 at 06:19:28PM -0400, Robert Sanford wrote: > Yes, applications have many choices for PRNGs. But, we still need one > internally for the following libs: PMDs (e1000, fm10k, i40e, ixgbe, virtio, > xenvirt), sched, and timer. > They can be updated to use the apropriate rng from an external library. Neil > > On Fri, Mar 27, 2015 at 8:03 PM, Stephen Hemminger < > stephen@networkplumber.org> wrote: > > I would argue remove rte_rand from DPDK. > > > > On Mon, Mar 30, 2015 at 1:28 AM, Stephen Hemminger < > stephen@networkplumber.org> wrote: > > > if some one needs PRNG, th GNU scientific library has lots of them > > > > https://www.gnu.org/software/gsl/manual/html_node/Random-number-generator-algorithms.html > > > > On Fri, Mar 27, 2015 at 5:38 PM, Matthew Hall > > wrote: > > > > > On Fri, Mar 27, 2015 at 05:03:02PM -0700, Stephen Hemminger wrote: > > > > I would argue remove rte_rand from DPDK. > > > > > > +1 > > > > > > To paraphrase Donald Knuth, "Random numbers should not be generated > > [using > > > a > > > function coded] at random." > > > > > > It'd be better to fix libc, or considering that has a slow dev cycle and > > > platform compatibility limits, use some simple, semi-random, > > > high-performance > > > BSD licensed routine from a known-good library. > > > > > > Matthew. > > > > > >