diff options
| author | NeilBrown <neilb@suse.com> | 2017-12-18 12:41:42 +1100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-08 16:03:44 +0100 |
| commit | 30f4236aafa81722490e74ded48a9fb2aff013ab (patch) | |
| tree | 8482ff744cc23c165ce12a51cf1c808ccb4ae087 /tools/perf/scripts | |
| parent | bcfa98a50763a0f781a8441d1994ae1456816219 (diff) | |
| download | cachepc-linux-30f4236aafa81722490e74ded48a9fb2aff013ab.tar.gz cachepc-linux-30f4236aafa81722490e74ded48a9fb2aff013ab.zip | |
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 <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions
