예제 #1
0
        public byte[] CreateRandomNonce()
        {
            var nonce = new byte[NonceSize];

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

            return(nonce);
        }
예제 #2
0
 public void GetRandomBytes(byte[] buffer)
 {
     PlatformInvoke32.randombytes_buf(buffer, new UIntPtr((uint)buffer.Length));
 }