Generate and store a given number of pseudorandom bytes, using a nonce and a secret key. The amount of data read from the nonce location and secret key location will be cryptoStreamXChaCha20NonceBytes and cryptoStreamXChaCha20KeyBytes respectively.
This function theoretically returns 0 on success, and -1 on failure. However, this cannot ever fail, although its documentation does not explain this.