From: Ian Campbell Subject: Re: [PATCH 2/8] libxl: add libxl__random_bytes() which fills a buffer with random bytes Date: Wed, 18 Jun 2014 12:28:29 +0100 Message-ID: <1403090909.25575.8.camel@kazak.uk.xensource.com> References: <1402585478-3389-1-git-send-email-david.vrabel@citrix.com> <1402585478-3389-3-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WxE2c-0001Ng-CP for xen-devel@lists.xenproject.org; Wed, 18 Jun 2014 11:28:34 +0000 In-Reply-To: <1402585478-3389-3-git-send-email-david.vrabel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel Cc: xen-devel@lists.xenproject.org, Roger Pau Monne , Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Thu, 2014-06-12 at 16:04 +0100, David Vrabel wrote: > The random bytes are obtained from /dev/urandom and are suitable for > almost all uses (except for generating long-lived secure keys). > > Documentation suggests that /dev/urandom is widely available on Unix-like > systems (such FreeBSD and NetBSD). This seems likely to me. Roger, can you confirm? > A public libxl_random_bytes() (or similar) could be trivially added, > if this required in the future. > > Signed-off-by: David Vrabel Acked-by: Ian Campbell