public static byte[] getRandomBytes(int size) {
    byte[] bytes = new byte[size];
    RANDOM.nextBytes(bytes);
    return bytes;
  }
Gets a byte array of length {@code size} with random bytes.
@param size the required length of the random byte array.
@return a byte array of length {@code size} with random bytes.
ambry-test-utils/src/main/java/com/github/ambry/utils/TestUtils.java