Skip to content

Commit a12cac3

Browse files
committed
one more
1 parent 6b1891f commit a12cac3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sdk/src/test/java/io/opentdf/platform/sdk/PolicyInfoTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ void settingAndGettingPolicyBinding() {
6868
}
6969

7070

71-
BigInteger getRandomBigInteger(Random rand, int bitLength) {
72-
var numBytesForKey = (bitLength + 7) / 8; // Round up to the nearest byte
73-
return new BigInteger(rand.nextInt(numBytesForKey), rand);
71+
BigInteger getRandomBigInteger(Random rand, int byteLength) {
72+
return new BigInteger(1+rand.nextInt(byteLength-1), rand);
7473
}
7574
@Test
7675
void testReadingSignatureWithComponentSizes() {

0 commit comments

Comments
 (0)