aboutsummaryrefslogtreecommitdiffstats
diff options
authorMarkus Theil <theil.markus@gmail.com>2025-02-11 07:33:32 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2025-03-21 13:54:32 +0100
commit602c988b782739069cec3c47840571788e9572ca (patch)
treebce517b0414c5a17f11f4fbfaed34035e462e99c
parent4d9f9f8624a01b63f3c425fe26d7d0b9048248be (diff)
downloadrandom-master.tar.gz
prandom: remove next_pseudo_random32HEADmaster
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>
-rw-r--r--include/linux/prandom.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/prandom.h b/include/linux/prandom.h
index f2ed5b72b3d6f2..ff7dcc3fa1057a 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