From: Keir Fraser Subject: Re: dom0 and domU /dev/urandom generating too less entropy Date: Thu, 11 Oct 2007 08:27:13 +0100 Message-ID: References: <470D2F4A.8070000@netz-haut.de> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <470D2F4A.8070000@netz-haut.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stephan Seitz , XEN User - listmembers , XEN Devel - listmembers List-Id: xen-devel@lists.xenproject.org On 10/10/07 21:00, "Stephan Seitz" wrote: > Do you know about a workaround, or maybe the possibility for another > (xen-specific) RNG > besides of /dev/urandom ? I'm surprised you see failures. By my understanding, /dev/urandom is always supposed to return the request number of bytes, but their randomness depends on the amount of entropy currently in the pool. Perhaps sshd explicitly interrogates urandom to find out how much entropy it has gathered? Anyway, the domU kernel gathers entropy from the interrupt delivery times of the netfront and blkfront drivers. This is similar to what a native kernel does. It's not clear how we can easily improve on that without e.g., plumbing through a hardware RNG to domUs. -- Keir