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 | 30f4236aafa81722490e74ded48a9fb2aff013ab (patch) | |
| tree | 8482ff744cc23c165ce12a51cf1c808ccb4ae087 /tools/perf/scripts/python | |
| parent | bcfa98a50763a0f781a8441d1994ae1456816219 (diff) | |
staging: lustre: replace cfs_srand() calls with add_device_randomness().
The only places that cfs_srand is called, the random bits are
mixed with bits from get_random_bytes(). So it is equally effective
to add entropy to either pool.
So we can replace calls to cfs_srand() with calls that add the
entropy with add_device_randomness(). That function adds time-based
entropy, so we can discard the ktime_get_ts64 calls.
One location in lustre_handles.c only adds timebased
entropy. This cannot improve the entropy provided by get_random_bytes(),
so just discard that call.
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