### Question:
CryptoCavaWrapper { public static byte[] randomBytes(int length) { byte[] result = new byte[length]; Sodium.randombytes(result, length); Verify.verify(!isEmpty(result), "Random generation failed, contains all zeroes"); return result; } private  CryptoCavaWrapper(); static byte[] base64Decode(byte[] base64Decoded); static byte[] hexToBin(byte[] hex); static void cryptoGenericHashBlake2b(byte[] out, byte[] in, byte[] key); static byte[] randomBytes(int length); static void cryptoSignDetached(byte[] out, byte[] msg, byte[] privateKey); static void cryptoSignEd25519SeedKeypair(byte[] seed, byte[] pkey, byte[] sk); static int cryptoSignVerifyDetached(byte[] signature, byte[] message, byte[] publicKey); static final int VARIANT_URLSAFE_NO_PADDING; }### Answer:
@Test public void randomBytes() { assertEquals(CryptoCavaWrapper.randomBytes(24).length, 24); }