BN_pseudo_rand() 개인적인 메소드

private BN_pseudo_rand ( IntPtr rnd, int bits, int top, int bottom ) : int
rnd System.IntPtr
bits int
top int
bottom int
리턴 int
예제 #1
0
파일: Random.cs 프로젝트: wlasser/D3Emu
        /// <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);
        }