commit | 3164d3ebb3d8feb27ca59d98c53306ab93f476b2 | [log] [tgz] |
---|---|---|
author | H. Peter Anvin <hpa@linux.intel.com> | Tue Mar 04 14:55:38 2014 -0800 |
committer | H. Peter Anvin <hpa@linux.intel.com> | Tue Mar 04 14:55:38 2014 -0800 |
tree | e5083e514b471a76d092b7690c8f6d24a3684beb | |
parent | 0ad21ad0a4d02faf48b5ff94db0ffb7cb43773c2 [diff] |
rdrand: Simplify by changing x86_rdrand_nlong to x86_rdrand_bytes Make the code simpler by making x86_rdrand_nlong instead take a count in bytes and return the number of bytes written (the latter will matter for upcoming RDSEED enabling.) The function may still round up the size of the output buffer to a 4- or 8-byte boundary. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>