From 2a648d1052cf83c465d59311032e5a4e6c3e8d65 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 31 Jan 2016 22:19:06 -0500 Subject: [PATCH] Fixed RDSEED self test failure under i686 --- validat1.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/validat1.cpp b/validat1.cpp index d2825081..94c3c45c 100644 --- a/validat1.cpp +++ b/validat1.cpp @@ -1107,8 +1107,9 @@ bool TestRDRAND() #if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64) bool TestRDSEED() { - // Testing on 6th generation i7 shows RDSEED needs about 128 retries for 10K bytes. - RDSEED rdseed(128); + // Testing on 5th generation i5 shows RDSEED needs about 128 retries for 10K bytes + // on 64-bit/amd64 VM, and it needs more for an 32-bit/i686 VM. + RDSEED rdseed(256); bool entropy = true, compress = true, discard = true; static const unsigned int SIZE = 10000;