public static SecretBytes randomBytes(int length) {
    return new SecretBytes(Bytes.copyFrom(Random.randBytes(length)));
  }
Creates a new SecretBytes with bytes chosen uniformly at random of length {@code length}.
java_src/src/main/java/com/google/crypto/tink/util/SecretBytes.java