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 77import java .util .ArrayList ;
88import java .util .HashMap ;
99import java .util .List ;
10+ import java .util .Random ;
1011
1112import junit .framework .TestCase ;
1213import org .bouncycastle .crypto .AsymmetricCipherKeyPair ;
@@ -36,6 +37,10 @@ public void testVectors()
3637
3738 TestSampler sampler = new TestSampler ();
3839
40+ Random rd = new Random (System .currentTimeMillis ());
41+
42+ int offSet = rd .nextInt (10 );
43+
3944 String [] fileList = splitOn (files , ' ' );
4045 for (int i = 0 ; i < fileList .length ; i ++)
4146 {
@@ -65,10 +70,14 @@ public void testVectors()
6570 byte [] sigExpected = Hex .decode ((String )buf .get ("sm" ));
6671 byte [] seed = Hex .decode ((String )buf .get ("seed" ));
6772
68- if (sampler . skipTest (count ))
73+ if (Integer . parseInt (count ) != offSet )
6974 {
7075 continue ;
7176 }
77+ // if (sampler.skipTest(count))
78+ // {
79+ // continue;
80+ // }
7281
7382 GeMSSKeyPairGenerator kpGen = new GeMSSKeyPairGenerator ();
7483 SecureRandom random = new NISTSecureRandom (seed , null );
You can’t perform that action at this time.
0 commit comments