From patchwork Mon Feb 27 16:14:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruno Victal X-Patchwork-Id: 47449 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3E51B16BBA; Mon, 27 Feb 2023 16:16:41 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E5F3416A98 for ; Mon, 27 Feb 2023 16:16:39 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWgAd-0003As-82; Mon, 27 Feb 2023 11:16:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWgAZ-00031W-CW for guix-patches@gnu.org; Mon, 27 Feb 2023 11:16:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWgAU-0001OQ-Se for guix-patches@gnu.org; Mon, 27 Feb 2023 11:16:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWgAT-0004ZX-OF for guix-patches@gnu.org; Mon, 27 Feb 2023 11:16:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61845] [PATCH 1/3] gnu: rng-tools: Rewrite using gexps. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Feb 2023 16:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61845 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61845@debbugs.gnu.org Cc: Bruno Victal Received: via spool by 61845-submit@debbugs.gnu.org id=B61845.167751452217488 (code B ref 61845); Mon, 27 Feb 2023 16:16:01 +0000 Received: (at 61845) by debbugs.gnu.org; 27 Feb 2023 16:15:22 +0000 Received: from localhost ([127.0.0.1]:48638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWg9p-0004Xy-Jj for submit@debbugs.gnu.org; Mon, 27 Feb 2023 11:15:21 -0500 Received: from smtpmciv2.myservices.hosting ([185.26.107.238]:60094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWg9k-0004WS-AZ for 61845@debbugs.gnu.org; Mon, 27 Feb 2023 11:15:19 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpmciv2.myservices.hosting (Postfix) with ESMTP id 5B2A220D1B for <61845@debbugs.gnu.org>; Mon, 27 Feb 2023 17:14:59 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 02DD280098; Mon, 27 Feb 2023 17:14:59 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id fupjl9QkQeo7; Mon, 27 Feb 2023 17:14:58 +0100 (CET) Received: from guix-nuc.home.arpa (bl9-119-177.dsl.telepac.pt [85.242.119.177]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 9805080097; Mon, 27 Feb 2023 17:14:58 +0100 (CET) From: Bruno Victal Date: Mon, 27 Feb 2023 16:14:55 +0000 Message-Id: <7ed5e4122f849b5df8170fd785527fb83e3f9297.1677514269.git.mirai@makinata.eu> X-Mailer: git-send-email 2.39.1 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/linux.scm (rng-tools)[arguments]: Rewrite using gexps. --- gnu/packages/linux.scm | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index f9d75f8c6b..bd180f6325 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -6595,20 +6595,21 @@ (define-public rng-tools "0i00if7xknpm0dhkrm60rxzyyvq0vdibq7dvsd2ncm9pg098qvwj")))) (build-system gnu-build-system) (arguments - `(;; Disable support for various hardware entropy sources as they need - ;; dependencies that are not yet in Guix, and would significantly - ;; increase closure size. - #:configure-flags '("--without-nistbeacon" - "--without-pkcs11" - "--without-rtlsdr") - #:phases - (modify-phases %standard-phases - (add-before 'check 'disable-failing-test - (lambda _ - (substitute* "tests/Makefile" - ;; This test requires a hwrng, rdrand, or tpm device. - ;; Worse, it appears to fail if that isn't sufficiently random. - (("\\brngtestjitter\\.sh\\b") " "))))))) + (list + ;; Disable support for various hardware entropy sources as they need + ;; dependencies that are not yet in Guix, and would significantly + ;; increase closure size. + #:configure-flags #~(list "--without-nistbeacon" + "--without-pkcs11" + "--without-rtlsdr") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'disable-failing-test + (lambda _ + (substitute* "tests/Makefile" + ;; This test requires a hwrng, rdrand, or tpm device. + ;; Worse, it appears to fail if that isn't sufficiently random. + (("\\brngtestjitter\\.sh\\b") " "))))))) (native-inputs (list autoconf automake pkg-config)) (inputs From patchwork Mon Feb 27 16:14:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bruno Victal X-Patchwork-Id: 47450 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id AD98B16BBF; Mon, 27 Feb 2023 16:16:44 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7BCAE16A98 for ; Mon, 27 Feb 2023 16:16:43 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWgAd-0003Au-Cb; Mon, 27 Feb 2023 11:16:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWgAZ-00031V-Bx for guix-patches@gnu.org; Mon, 27 Feb 2023 11:16:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWgAU-0001OU-OL for guix-patches@gnu.org; Mon, 27 Feb 2023 11:16:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWgAU-0004Zm-K9 for guix-patches@gnu.org; Mon, 27 Feb 2023 11:16:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61845] [PATCH 2/3] gnu: rng-tools: Do not build randstat binary. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Feb 2023 16:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61845 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61845@debbugs.gnu.org Cc: Bruno Victal Received: via spool by 61845-submit@debbugs.gnu.org id=B61845.167751452917522 (code B ref 61845); Mon, 27 Feb 2023 16:16:02 +0000 Received: (at 61845) by debbugs.gnu.org; 27 Feb 2023 16:15:29 +0000 Received: from localhost ([127.0.0.1]:48643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWg9x-0004YX-AU for submit@debbugs.gnu.org; Mon, 27 Feb 2023 11:15:29 -0500 Received: from smtpmciv2.myservices.hosting ([185.26.107.238]:60174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWg9s-0004YG-9R for 61845@debbugs.gnu.org; Mon, 27 Feb 2023 11:15:26 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpmciv2.myservices.hosting (Postfix) with ESMTP id C7B2620E20 for <61845@debbugs.gnu.org>; Mon, 27 Feb 2023 17:15:12 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 73D7D80098; Mon, 27 Feb 2023 17:15:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Itds99xLzlow; Mon, 27 Feb 2023 17:15:09 +0100 (CET) Received: from guix-nuc.home.arpa (bl9-119-177.dsl.telepac.pt [85.242.119.177]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 618E780097; Mon, 27 Feb 2023 17:15:09 +0100 (CET) From: Bruno Victal Date: Mon, 27 Feb 2023 16:14:56 +0000 Message-Id: X-Mailer: git-send-email 2.39.1 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches This trivial binary is rarely useful. * gnu/local.mk (dist_patch_DATA): Register patch. * gnu/packages/patches/rng-tools-revert-build-randstat.patch: New file. * gnu/packages/linux.scm (rng-tools)[origin]: Add patch. --- gnu/local.mk | 1 + gnu/packages/linux.scm | 6 ++- .../rng-tools-revert-build-randstat.patch | 49 +++++++++++++++++++ 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/rng-tools-revert-build-randstat.patch diff --git a/gnu/local.mk b/gnu/local.mk index 4ccf015316..4e84cf1b06 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1805,6 +1805,7 @@ dist_patch_DATA = \ %D%/packages/patches/restic-0.9.6-fix-tests-for-go1.15.patch \ %D%/packages/patches/retroarch-LIBRETRO_DIRECTORY.patch \ %D%/packages/patches/r-mixedpower-r2power.patch \ + %D%/packages/patches/rng-tools-revert-build-randstat.patch \ %D%/packages/patches/rnp-add-version.cmake.patch \ %D%/packages/patches/rnp-disable-ruby-rnp-tests.patch \ %D%/packages/patches/rnp-unbundle-googletest.patch \ diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index bd180f6325..9ba4b2b119 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -69,6 +69,7 @@ ;;; Copyright © 2022 Hilton Chain ;;; Copyright © 2022 Stefan ;;; Copyright © 2022 Demis Balbach +;;; Copyright © 2023 Bruno Victal ;;; ;;; This file is part of GNU Guix. ;;; @@ -6592,7 +6593,10 @@ (define-public rng-tools (file-name (git-file-name name version)) (sha256 (base32 - "0i00if7xknpm0dhkrm60rxzyyvq0vdibq7dvsd2ncm9pg098qvwj")))) + "0i00if7xknpm0dhkrm60rxzyyvq0vdibq7dvsd2ncm9pg098qvwj")) + (patches + (search-patches "rng-tools-revert-build-randstat.patch")) + (patch-flags '("-p0")))) (build-system gnu-build-system) (arguments (list diff --git a/gnu/packages/patches/rng-tools-revert-build-randstat.patch b/gnu/packages/patches/rng-tools-revert-build-randstat.patch new file mode 100644 index 0000000000..6402884af0 --- /dev/null +++ b/gnu/packages/patches/rng-tools-revert-build-randstat.patch @@ -0,0 +1,49 @@ +Source: https://src.fedoraproject.org/rpms/rng-tools/blob/aaca5d6d9c9a50e0d0eed74c67b09863ac37149a/f/2-rt-revert-build-randstat.patch + +From de2ee0d8b7e8ad2915165ef941a6ec37442a2fdc Mon Sep 17 00:00:00 2001 +From: Vladis Dronov +Date: Tue, 6 Jul 2021 14:36:46 +0200 +Subject: [PATCH] Revert "Build randstat binary" + +We do not want new and mostly useless randstat binary. +This reverts commit 2ce93190cb0111fcab2f622a539689d70960643a. + +Signed-off-by: Vladis Dronov +--- + .gitignore | 3 +-- + contrib/Makefile.am | 5 +++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git .gitignore .gitignore +index 943fa2b..5dc334d 100644 +--- .gitignore ++++ .gitignore +@@ -1,6 +1,6 @@ + *.a + *.o +-.deps/ ++/.deps/ + /aclocal.m4 + /ar-lib + /autom4te.cache/ +@@ -10,7 +10,6 @@ + /config.status + /config.sub + /configure +-/contrib/randstat + /depcomp + /install-sh + /missing +diff --git contrib/Makefile.am contrib/Makefile.am +index a81fb0e..18c4fbc 100644 +--- contrib/Makefile.am ++++ contrib/Makefile.am +@@ -1,2 +1,3 @@ +-bin_PROGRAMS = randstat +-randstat_SOURCES = randstat.c ++ ++EXTRA_DIST = randstat.c ++ +-- +2.26.3 + From patchwork Mon Feb 27 16:14:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruno Victal X-Patchwork-Id: 47448 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 162EF16BBA; Mon, 27 Feb 2023 16:16:37 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6946716A98 for ; Mon, 27 Feb 2023 16:16:35 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWgAc-0003AP-Vi; Mon, 27 Feb 2023 11:16:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWgAZ-00031L-Bl for guix-patches@gnu.org; Mon, 27 Feb 2023 11:16:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWgAU-0001OT-C6 for guix-patches@gnu.org; Mon, 27 Feb 2023 11:16:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWgAU-0004Zf-6p for guix-patches@gnu.org; Mon, 27 Feb 2023 11:16:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61845] [PATCH 3/3] gnu: rng-tools: Update to 6.16. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Feb 2023 16:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61845 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61845@debbugs.gnu.org Cc: Bruno Victal Received: via spool by 61845-submit@debbugs.gnu.org id=B61845.167751452217494 (code B ref 61845); Mon, 27 Feb 2023 16:16:02 +0000 Received: (at 61845) by debbugs.gnu.org; 27 Feb 2023 16:15:22 +0000 Received: from localhost ([127.0.0.1]:48640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWg9p-0004Y1-Tk for submit@debbugs.gnu.org; Mon, 27 Feb 2023 11:15:22 -0500 Received: from smtpm3.myservices.hosting ([185.26.105.234]:44572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWg9l-0004XZ-M6 for 61845@debbugs.gnu.org; Mon, 27 Feb 2023 11:15:20 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm3.myservices.hosting (Postfix) with ESMTP id 878FB210C2 for <61845@debbugs.gnu.org>; Mon, 27 Feb 2023 17:15:10 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 337378009A; Mon, 27 Feb 2023 17:15:10 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id CkMJheqYyT9u; Mon, 27 Feb 2023 17:15:09 +0100 (CET) Received: from guix-nuc.home.arpa (bl9-119-177.dsl.telepac.pt [85.242.119.177]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id B7CF480098; Mon, 27 Feb 2023 17:15:09 +0100 (CET) From: Bruno Victal Date: Mon, 27 Feb 2023 16:14:57 +0000 Message-Id: <78c1e5ed3ba6fd9da3fb7f9f697594198d05adce.1677514269.git.mirai@makinata.eu> X-Mailer: git-send-email 2.39.1 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/linux.scm (rng-tools): Update to 6.16. [arguments]: Disable qrypt. [inputs]: Add libcap. --- gnu/packages/linux.scm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 9ba4b2b119..57664a39ed 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -6585,7 +6585,7 @@ (define-public rng-tools (package (name "rng-tools") (home-page "https://github.com/nhorman/rng-tools") - (version "6.15") + (version "6.16") (source (origin (method git-fetch) (uri (git-reference (url home-page) @@ -6593,7 +6593,7 @@ (define-public rng-tools (file-name (git-file-name name version)) (sha256 (base32 - "0i00if7xknpm0dhkrm60rxzyyvq0vdibq7dvsd2ncm9pg098qvwj")) + "1rsk8nxs0j32b9hr88qk8hv029fb1q0hcrw0mfdywvm7dn2d15gn")) (patches (search-patches "rng-tools-revert-build-randstat.patch")) (patch-flags '("-p0")))) @@ -6605,7 +6605,8 @@ (define-public rng-tools ;; increase closure size. #:configure-flags #~(list "--without-nistbeacon" "--without-pkcs11" - "--without-rtlsdr") + "--without-rtlsdr" + "--without-qrypt") #:phases #~(modify-phases %standard-phases (add-before 'check 'disable-failing-test @@ -6617,7 +6618,7 @@ (define-public rng-tools (native-inputs (list autoconf automake pkg-config)) (inputs - (list sysfsutils openssl)) + (list libcap sysfsutils openssl)) (synopsis "Random number generator daemon") (description "Monitor a hardware random number generator, and supply entropy