Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Markus Theil and committed by
Jason A. Donenfeld
3c0c81de 8c0cf654

-6
-6
include/linux/prandom.h
··· 47 47 state->s4 = __seed(i, 128U); 48 48 } 49 49 50 - /* Pseudo random number generator from numerical recipes. */ 51 - static inline u32 next_pseudo_random32(u32 seed) 52 - { 53 - return seed * 1664525 + 1013904223; 54 - } 55 - 56 50 #endif