BN_pseudo_rand() private method

private BN_pseudo_rand ( IntPtr rnd, int bits, int top, int bottom ) : int
rnd System.IntPtr
bits int
top int
bottom int
return int
Exemplo n.º 1
0
        /// <summary>
        /// Calls BN_pseudo_rand()
        /// </summary>
        /// <param name="bits"></param>
        /// <param name="top"></param>
        /// <param name="bottom"></param>
        /// <returns></returns>
        public static BigNumber PseudoNext(int bits, int top, int bottom)
        {
            BigNumber bn = new BigNumber();

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