This message generated a parse failure. Raw output follows here. Please use 'back' to navigate. From devnull@lkml.org Fri Apr 26 16:44:59 2024 Delivery-date: Tue, 29 May 2007 16:02:51 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751859AbXE2QCQ (ORCPT ); Tue, 29 May 2007 12:02:16 -0400 Received: from ns2.suse.de ([195.135.220.15]:37976 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751724AbXE2QCQ (ORCPT ); Tue, 29 May 2007 12:02:16 -0400 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 3225221662; Tue, 29 May 2007 18:02:15 +0200 (CEST) To: "M Macnair" Cc: linux-kernel@vger.kernel.org Subject: Re: Seeding /dev/random not working References: From: Andi Kleen Date: 29 May 2007 18:58:59 +0200 In-Reply-To: Message-Id: Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org "M Macnair" writes: > > Many distros ship with an init script that saves and restores the > entropy pool on startup and shutdown. The bit that interests me that > is called on startup is (my comments): > if [ -f $random_seed ]; then > cat $random_seed >/dev/urandom # should seed the pool OA Writing doesn't actually work; to get real accounted entropy for /dev/random you need to use a special ioctl. I ran into this problem some years ago and ended up writing http://www.muc.de/~ak/rndfeed.c -Andi - 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/