RAND_pseudo_bytes() private method

private RAND_pseudo_bytes ( byte buf, int len ) : int
buf byte
len int
return int
Example #1
0
        /// <summary>
        /// Calls RAND_pseudo_bytes()
        /// </summary>
        /// <param name="len"></param>
        /// <returns></returns>
        public static byte[] PseudoBytes(int len)
        {
            var buf = new byte[len];

            Native.ExpectSuccess(Native.RAND_pseudo_bytes(buf, buf.Length));

            return(buf);
        }