We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b1891f commit a12cac3Copy full SHA for a12cac3
sdk/src/test/java/io/opentdf/platform/sdk/PolicyInfoTest.java
@@ -68,9 +68,8 @@ void settingAndGettingPolicyBinding() {
68
}
69
70
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);
+ BigInteger getRandomBigInteger(Random rand, int byteLength) {
+ return new BigInteger(1+rand.nextInt(byteLength-1), rand);
74
75
@Test
76
void testReadingSignatureWithComponentSizes() {
0 commit comments