File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -460,6 +460,7 @@ bool TestAutoSeeded()
460460#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
461461bool TestRDRAND ()
462462{
463+ // Testing on 6th generation i7 shows RDRAND needs less than 8 retries for 10K bytes.
463464 RDRAND rdrand;
464465 bool entropy = true , compress = true , discard = true ;
465466 static const unsigned int SIZE = 10000 ;
@@ -532,7 +533,8 @@ bool TestRDRAND()
532533#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
533534bool TestRDSEED ()
534535{
535- RDSEED rdseed;
536+ // Testing on 6th generation i7 shows RDSEED needs about 128 retries for 10K bytes.
537+ RDSEED rdseed (128 );
536538 bool entropy = true , compress = true , discard = true ;
537539 static const unsigned int SIZE = 10000 ;
538540
You can’t perform that action at this time.
0 commit comments