Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Draft] Scrolls and Probabilities - A Mathematical Approach
#8
Fiel Wrote:The server already monitors login time (as generally evidenced by the Family Pedigree window). The simplest time to use would be to have the traditional UNIX timestamp used for srand() as most programs in C do anyway. The server monitors (and synchronizes) the randomization between the client and server. If the client is desynced from the server, then the server disconnects the client.

I had originally hoped that Maplestory would use something other than the C-standard rand() function as it's not a very good function (several calls to the rand() function in the same second produces the same stream of bytes). The Mersenne Twister would be a much more suitable option and is commonly available in C++ Boost libraries. Hell, even using AES as a PRNG works too, and Maplestory utilizes this encryption standard everywhere anyway. Why not?
I think that nexon simply doesnt want to mess with these things as long as its not a problem. even with the current randomization algorithm its impossible to predict the server's rand result (mostly because you cant know how many seconds passed from the time you sent the packet until it reached the server and was processed).
Reply


Messages In This Thread
[Draft] Scrolls and Probabilities - A Mathematical Approach - by Kortestanov - 2009-06-17, 08:05 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)