BN_rand() private method

private BN_rand ( IntPtr rnd, int bits, int top, int bottom ) : int
rnd System.IntPtr
bits int
top int
bottom int
return int
Example #1
0
        /// <summary>
        /// Calls BN_rand()
        /// </summary>
        /// <param name="bits"></param>
        /// <param name="top"></param>
        /// <param name="bottom"></param>
        /// <returns></returns>
        public static BigNumber Next(int bits, int top, int bottom)
        {
            BigNumber bn = new BigNumber();

            Native.ExpectSuccess(Native.BN_rand(bn.Handle, bits, top, bottom));
            return(bn);
        }