public byte[] CreateRandomNonce()
        {
            var nonce = new byte[NonceSize];

            PlatformInvoke64.randombytes_buf(nonce, new UIntPtr((uint)nonce.Length));

            return(nonce);
        }
Exemplo n.º 2
0
 public void GetRandomBytes(byte[] buffer)
 {
     PlatformInvoke64.randombytes_buf(buffer, new UIntPtr((uint)buffer.Length));
 }