[RFC 2/3] random: do not include utsname in early random

From: Johannes Berg

Date: Thu Nov 19 2026 - 08:24:14 EST


From: Benjamin Berg <benjamin.berg@xxxxxxxxx>

The uts name includes information about the compile time and such and
changes. Exclude it, so that different kernel compilations will see
the same random numbers.

Signed-off-by: Benjamin Berg <benjamin.berg@xxxxxxxxx>
Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
---
drivers/char/random.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/random.c b/drivers/char/random.c
index b4da1fb976c1..64d0cfc99ac4 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -877,7 +877,7 @@ void __init random_init_early(const char *command_line)
++i;
}

- _mix_pool_bytes(init_utsname(), sizeof(*(init_utsname())));
+ /* _mix_pool_bytes(init_utsname(), sizeof(*(init_utsname()))); */
_mix_pool_bytes(command_line, strlen(command_line));

/* Reseed if already seeded by earlier phases. */
--
2.56.1