commit | f655a53acbb2ca6df707577d2a20cc938d61157f | [log] [tgz] |
---|---|---|
author | H. Peter Anvin <hpa@linux.intel.com> | Tue Mar 04 15:24:39 2014 -0800 |
committer | H. Peter Anvin <hpa@linux.intel.com> | Tue Mar 04 15:24:39 2014 -0800 |
tree | 4a0f037c9ef7fc3ce39ff22e30bc0b8edcca274b | |
parent | 3e89e082e8f716fec82f21ca888b36b70177712f [diff] |
rdrand: Enable the RDSEED instruction Enable the use of the RDSEED instruction. Since RDSEED can more easily be starved of entropy due to use on other threads, allow it to fall back to RDRAND by having a function which for every RDSEED failure executes RDRAND and stores a sample in a separate buffer. The RDRAND buffer and its high water mark are made static so that they can accumulate data across multiple invocations. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>