From: Markus Theil Date: Tue, 11 Feb 2025 06:33:32 +0000 (+0100) Subject: prandom: remove next_pseudo_random32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c0c81de525d2a2718e23754a5795483167904ac;p=thirdparty%2Flinux.git prandom: remove next_pseudo_random32 next_pseudo_random32 implements a LCG with known bad statistical properties and was only used in two pieces of testing code. With no remaining users now, remove it. Signed-off-by: Markus Theil Reviewed-by: Krzysztof Karas Signed-off-by: Jason A. Donenfeld --- diff --git a/include/linux/prandom.h b/include/linux/prandom.h index f2ed5b72b3d6f..ff7dcc3fa1057 100644 --- a/include/linux/prandom.h +++ b/include/linux/prandom.h @@ -47,10 +47,4 @@ static inline void prandom_seed_state(struct rnd_state *state, u64 seed) state->s4 = __seed(i, 128U); } -/* Pseudo random number generator from numerical recipes. */ -static inline u32 next_pseudo_random32(u32 seed) -{ - return seed * 1664525 + 1013904223; -} - #endif