Commit 3c0c81de authored by Markus Theil's avatar Markus Theil Committed by Jason A. Donenfeld
Browse files

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: default avatarMarkus Theil <theil.markus@gmail.com>
Reviewed-by: default avatarKrzysztof Karas <krzysztof.karas@intel.com>
Signed-off-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
parent 8c0cf654
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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