aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Theil <theil.markus@gmail.com>2025-02-11 07:33:32 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2025-06-10 11:30:40 -0600
commit76f52cbbbea7e58492226670c51ed24589f69e4a (patch)
treefcdadc241456a00f1febc7bc6569802622603efc
parentmedia: vivid: use prandom (diff)
downloadlinux-rng-76f52cbbbea7e58492226670c51ed24589f69e4a.tar.xz
linux-rng-76f52cbbbea7e58492226670c51ed24589f69e4a.zip
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 <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 f2ed5b72b3d6..ff7dcc3fa105 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