ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
4295f9
From f1266682aca4a2ed3d85017527d1456cbe5d2f2a Mon Sep 17 00:00:00 2001
4295f9
From: David Tardon <dtardon@redhat.com>
4295f9
Date: Thu, 15 Jul 2021 11:15:17 +0200
4295f9
Subject: [PATCH] random-util: increase random seed size to 1024
4295f9
4295f9
RHEL-only
4295f9
4295f9
Resolves: #1982603
4295f9
---
4295f9
 src/basic/random-util.h | 2 +-
4295f9
 1 file changed, 1 insertion(+), 1 deletion(-)
4295f9
4295f9
diff --git a/src/basic/random-util.h b/src/basic/random-util.h
4295f9
index e6528ddc7f..fda78552f6 100644
4295f9
--- a/src/basic/random-util.h
4295f9
+++ b/src/basic/random-util.h
4295f9
@@ -34,7 +34,7 @@ static inline uint32_t random_u32(void) {
4295f9
 int rdrand(unsigned long *ret);
4295f9
 
4295f9
 /* Some limits on the pool sizes when we deal with the kernel random pool */
4295f9
-#define RANDOM_POOL_SIZE_MIN 512U
4295f9
+#define RANDOM_POOL_SIZE_MIN 1024U
4295f9
 #define RANDOM_POOL_SIZE_MAX (10U*1024U*1024U)
4295f9
 
4295f9
 size_t random_pool_size(void);