systemd/0012-random-util-increase-random-seed-size-to-1024.patch
Jan Macku 90cf2cebb2 systemd-257-1
Resolves: RHEL-44417,RHEL-71409
2024-12-17 16:03:39 +01:00

26 lines
794 B
Diff

From bb9588c6bef5d4ec69665e30a7ae142ce02d5935 Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Thu, 15 Jul 2021 11:15:17 +0200
Subject: [PATCH] random-util: increase random seed size to 1024
RHEL-only: feature
Related: RHEL-40924
---
src/basic/random-util.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/basic/random-util.h b/src/basic/random-util.h
index 0b5ba77190..4118b77864 100644
--- a/src/basic/random-util.h
+++ b/src/basic/random-util.h
@@ -23,7 +23,7 @@ static inline uint32_t random_u32(void) {
}
/* Some limits on the pool sizes when we deal with the kernel random pool */
-#define RANDOM_POOL_SIZE_MIN 32U
+#define RANDOM_POOL_SIZE_MIN 1024U
#define RANDOM_POOL_SIZE_MAX (10U*1024U*1024U)
#define RANDOM_EFI_SEED_SIZE 32U