diff options
| author | NeilBrown <[email protected]> | 2017-12-18 12:41:42 +1100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-01-08 16:03:44 +0100 |
| commit | bcfa98a50763a0f781a8441d1994ae1456816219 (patch) | |
| tree | 682748195d661e6a8f1f16d52e8cea5e78be3359 /tools/perf/scripts/python | |
| parent | 19ae89d32503493315dec77919815d3add851389 (diff) | |
staging: lustre: replace cfs_rand() with prandom_u32_max()
All occurrences of
cfs_rand() % X
are replaced with
prandom_u32_max(X)
cfs_rand() is a simple Linear Congruential PRNG. prandom_u32_max()
is at least as random, is seeded with more randomness, and uses
cpu-local state to avoid cross-cpu issues.
This is the first step is discarding the libcfs prng with
the standard linux prng.
Signed-off-by: NeilBrown <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions