예제 #1
0
        public virtual int sceMt19937Init(TPointer mt19937Addr, int seed)
        {
            SceMT19937 mt19937 = new SceMT19937();

            MT19937.init(mt19937, seed);
            mt19937.write(mt19937Addr);

            return(0);
        }
예제 #2
0
        public virtual int sceMt19937UInt(SceMT19937 mt19937)
        {
            int random = MT19937.getInt(mt19937);

            //if (log.DebugEnabled)
            {
                Console.WriteLine(string.Format("sceMt19937UInt returning 0x{0:X8}", random));
            }
            mt19937.write(Memory.Instance);

            return(random);
        }