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