mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 18:09:48 +00:00
Use [31398, 31468] for prime gap test
This commit is contained in:
parent
7421bd2055
commit
ba8882db39
@ -2152,8 +2152,8 @@ bool TestIntegerBitops()
|
||||
|
||||
// Integer is missing a couple of tests...
|
||||
try {
|
||||
// All in range [90, 96] are composite
|
||||
Integer x = Integer(GlobalRNG(), 90, 96, Integer::PRIME);
|
||||
// A run of 71 composites; see http://en.wikipedia.org/wiki/Prime_gap
|
||||
Integer x = Integer(GlobalRNG(), 31398, 31468, Integer::PRIME);
|
||||
pass=false;
|
||||
} catch (const Exception&) {
|
||||
pass=true;
|
||||
|
Loading…
Reference in New Issue
Block a user