aboutsummaryrefslogtreecommitdiffstats
diff options
authorMarkus Theil <theil.markus@gmail.com>2025-02-11 07:33:32 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2025-10-30 18:35:26 +0100
commit3c0c81de525d2a2718e23754a5795483167904ac (patch)
tree2623e9f8fee7334c2936e7834a788fc78871ca78
parentmedia: vivid: use prandom (diff)
downloadlinux-rng-3c0c81de525d2a2718e23754a5795483167904ac.tar.xz
linux-rng-3c0c81de525d2a2718e23754a5795483167904ac.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