Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758352AbWK0QPs (ORCPT ); Mon, 27 Nov 2006 11:15:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758355AbWK0QPs (ORCPT ); Mon, 27 Nov 2006 11:15:48 -0500 Received: from iriserv.iradimed.com ([69.44.168.233]:18491 "EHLO iradimed.com") by vger.kernel.org with ESMTP id S1758352AbWK0QPr (ORCPT ); Mon, 27 Nov 2006 11:15:47 -0500 Message-ID: <456B0F53.90209@cfl.rr.com> Date: Mon, 27 Nov 2006 11:16:19 -0500 From: Phillip Susi User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: G.Ohrner@post.rwth-aachen.de CC: linux-kernel@vger.kernel.org Subject: Re: Entropy Pool Contents References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 27 Nov 2006 16:15:52.0722 (UTC) FILETIME=[4F5F1720:01C7123F] X-TM-AS-Product-Ver: SMEX-7.2.0.1122-3.6.1039-14838.003 X-TM-AS-Result: No--12.662200-5.000000-31 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1021 Lines: 25 Gunter Ohrner wrote: > IMHO something really fishy's going on there. If I explicitely write data > into the pool, it shouldd not stay at "zero", from wwhat I understood about > how /dev/*random work. > > I'm mainly wondering why writing stuff to /dev/*random does not change the > entropy from zero to at least any low non-zero value... > I ran into this the other day myself and when I investigated the kernel code, I found that writes to /dev/random do accept the data into the entropy pool, but do NOT update the entropy estimate. In order to do that, you have to use a root only ioctl to add the data and update the estimate. I am not sure why this is, or if there is a tool already written somewhere to use this ioctl, maybe someone else can comment? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/