diff options
| author | Tobin C. Harding <[email protected]> | 2018-06-21 23:15:32 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2018-07-18 01:32:48 +0000 |
| commit | 753d433b586d1d43c487e3d660f5778c7c8d58ea (patch) | |
| tree | 7f1a030f66811359e8c12c7e4d3668564d919684 /tools/perf/scripts/python | |
| parent | random: Fix whitespace pre random-bytes work (diff) | |
| download | kernel-753d433b586d1d43c487e3d660f5778c7c8d58ea.tar.gz kernel-753d433b586d1d43c487e3d660f5778c7c8d58ea.zip | |
random: Return nbytes filled from hw RNG
Currently the function get_random_bytes_arch() has return value 'void'.
If the hw RNG fails we currently fall back to using get_random_bytes().
This defeats the purpose of requesting random material from the hw RNG
in the first place.
There are currently no intree users of get_random_bytes_arch().
Only get random bytes from the hw RNG, make function return the number
of bytes retrieved from the hw RNG.
Acked-by: Theodore Ts'o <[email protected]>
Reviewed-by: Steven Rostedt (VMware) <[email protected]>
Signed-off-by: Tobin C. Harding <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
