From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Hall Subject: Re: [RFC PATCH] eal: rte_rand yields only 62 random bits Date: Fri, 27 Mar 2015 17:38:21 -0700 Message-ID: <20150328003821.GA13992@mhcomputing.net> References: <1426609081-47774-1-git-send-email-rsanford@akamai.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "dev-VfR2kkLFssw@public.gmane.org" To: Stephen Hemminger Return-path: Content-Disposition: inline In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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.