File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
core/src/test/java/org/bouncycastle/pqc/crypto/test Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 88import java .util .ArrayList ;
99import java .util .HashMap ;
1010import java .util .List ;
11+ import java .util .Random ;
1112
1213import junit .framework .TestCase ;
1314import org .bouncycastle .asn1 .pkcs .PrivateKeyInfo ;
@@ -46,6 +47,10 @@ public void testVectors()
4647
4748 TestSampler sampler = new TestSampler ();
4849
50+ Random rd = new Random (System .currentTimeMillis ());
51+
52+ int offSet = rd .nextInt (10 );
53+
4954 String [] fileList = splitOn (files , ' ' );
5055 //long startTime = System.currentTimeMillis();
5156 for (int i = 0 ; i != fileList .length ; i ++)
@@ -75,10 +80,14 @@ public void testVectors()
7580 byte [] sigExpected = Hex .decode ((String )buf .get ("sm" ));
7681 byte [] oprR = Hex .decode ((String )buf .get ("optrand" ));
7782
78- if (sampler . skipTest (count ))
83+ if (Integer . parseInt (count ) != offSet )
7984 {
8085 continue ;
8186 }
87+ // if (sampler.skipTest(count))
88+ // {
89+ // continue;
90+ // }
8291
8392 SPHINCSPlusKeyPairGenerator kpGen = new SPHINCSPlusKeyPairGenerator ();
8493 SecureRandom random = new FixedSecureRandom (sk );
You can’t perform that action at this time.
0 commit comments