public static byte[] randBytes(int size) {
    byte[] rand = new byte[size];
    localRandom.get().nextBytes(rand);
    return rand;
  }
Returns a random byte array of size {@code size}.
java_src/src/main/java/com/google/crypto/tink/internal/Random.java