Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
random32: add a selftest for the prandom32 code
Given that this code is new, let's add a selftest for it as well. It doesn't rely on fixed sets, instead it picks 1024 numbers and verifies that they're not more correlated than desired. Link: https://lore.kernel.org/netdev/[email protected]/ Cc: George Spelvin <[email protected]> Cc: Amit Klein <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: "Jason A. Donenfeld" <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Kees Cook <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: [email protected] Cc: Florian Westphal <[email protected]> Cc: Marc Plumb <[email protected]> Signed-off-by: Willy Tarreau <[email protected]>
- Loading branch information