Early fix for randomizer issue?
#5
Fixing randomization is surprisingly easy. Blizzard calls time() and uses that as their master seed. If time() is called outside its signed 32-bit range, it returns -1, hence no randomization. You can ensure randomization by replacing the call to time() with something that returns a truly random positive 32-bit number.
Reply


Messages In This Thread
Early fix for randomizer issue? - by sedrosken - 01-17-2012, 01:41 PM
RE: Early fix for randomizer issue? - by Nystul - 01-18-2012, 09:50 AM
RE: Early fix for randomizer issue? - by [vL]Kp - 01-22-2012, 07:39 PM
RE: Early fix for randomizer issue? - by Kal - 02-12-2012, 06:58 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)