From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#37501: [core-updates] Entropy starvation during boot Date: Fri, 04 Oct 2019 11:07:50 +0200 Message-ID: <87a7agyj2x.fsf@gnu.org> References: <87sgolae6l.fsf@devup.no> <87h84qdbmg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48123) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGJZD-0001di-8Z for bug-guix@gnu.org; Fri, 04 Oct 2019 05:08:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGJZC-0004Ht-8R for bug-guix@gnu.org; Fri, 04 Oct 2019 05:08:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32924) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iGJZC-0004HV-55 for bug-guix@gnu.org; Fri, 04 Oct 2019 05:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iGJZB-00041p-Uy for bug-guix@gnu.org; Fri, 04 Oct 2019 05:08:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87h84qdbmg.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 03 Oct 2019 00:29:59 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Marius Bakke Cc: 37501@debbugs.gnu.org Ludovic Court=C3=A8s skribis: > + (let ((bits (* 8 (stat:size (stat seed))))) > + (add-to-entropy-count urandom bits))))))) Oh we also need to do that below, when reading from /dev/hwrng: (when buf (call-with-output-file "/dev/urandom" (lambda (urandom) (put-bytevector urandom buf) (let ((bits (* 8 (bytevector-length buf)))) (add-to-entropy-count urandom bits))))) ;<- here Ludo=E2=80=99.