public byte[] CreateRandomNonce() { var nonce = new byte[NonceSize]; PlatformInvoke64.randombytes_buf(nonce, new UIntPtr((uint)nonce.Length)); return(nonce); }
public void GetRandomBytes(byte[] buffer) { PlatformInvoke64.randombytes_buf(buffer, new UIntPtr((uint)buffer.Length)); }