]> www.infradead.org Git - users/hch/misc.git/commitdiff
prandom: remove next_pseudo_random32
authorMarkus Theil <theil.markus@gmail.com>
Tue, 11 Feb 2025 06:33:32 +0000 (07:33 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 21 Mar 2025 12:54:32 +0000 (13:54 +0100)
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 <theil.markus@gmail.com>
Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
include/linux/prandom.h

index f2ed5b72b3d6f21c2c893cf37153c8a565456c9c..ff7dcc3fa1057ae4b9a871ff4938345ad8d360d3 100644 (file)
@@ -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