Thread: RNG Research
View Single Post
Old Sep 27th, 2010, 10:33:00 AM   #327
mingot**
free agent
is a member of the Smogon Site Staffis a Battle Server Administratoris an Administrator
 
Administrator
Join Date: Jun 2008
Posts: 3,045
Default

Some things that might help:

Regarding seed 2 and the constant 0x5D588B65:

It looks like it's a hash function.

http://blogs.msdn.com/b/ricom/archiv...good-hash.aspx

Regarding seed 1:

0x6C078965 used to be part of the old ARNG.

It really looks like this is just another LCRNG with new constants. I used the researcher function in RNG Reporter and plugged in your new constants and got the same results that you did when you forced the seed.

Regarding something I found a few days ago:

Check out the routine at 02019B7A. It's the old LCRNG, but I didn't see where it actually stored the value. Everything came in and out through registers and without a debugger I could not get a handle on where / when it was called.
mingot is offline   Reply With Quote