Re: [PATCH 1/4] prandom.h: add *_state variant of prandom_u32_max

2020-10-30 Thread Petr Mladek
On Sun 2020-10-25 22:48:39, Rasmus Villemoes wrote: > It is useful for test modules that make use of random numbers to allow > the exact same series of test cases to be repeated (e.g., after fixing > a bug in the code being tested). For that, the test module needs to > obtain its random numbers

[PATCH 1/4] prandom.h: add *_state variant of prandom_u32_max

2020-10-25 Thread Rasmus Villemoes
It is useful for test modules that make use of random numbers to allow the exact same series of test cases to be repeated (e.g., after fixing a bug in the code being tested). For that, the test module needs to obtain its random numbers from a private state that can be seeded by a known seed, e.g.