public static byte[] randomBytes(final int size) {
        final byte[] bytes = new byte[size];
        SEEDED_RANDOM.nextBytes(bytes);
        return bytes;
    }
Generate an array of random bytes

@param size The size of the array
clients/src/test/java/org/apache/kafka/test/TestUtils.java