So, as any large server can tell you, random isn't very random (0.20% drop chance, sure):
[img]http://i.imgur.com/Ynzrpv8.png[/img]
I used to just blame this on the fact there are a lot of players and pseudorandom number generators just not being that good. I ran off to find a true random number generator and then began checking the source code to find out if it'd be possible to implement it. The most effective way would have been to just edit the function that plugs in the seed.
Then I discovered something interesting:
It appears the seed for the random number generator, which is set by rnd_init(), is only called once at boot time (in core.c, by main()). This means that the seed is never changed and that "random" numbers are very predictable after any decent length of up time.
This should be modified so the seed is changed quite often (I'd say at longest every few minutes). It'd also be nice if it would be seeded with some data from /dev/urandom or /dev/random instead of [b]the[/b] [b]time [/b](really?).
This post has been edited by
Ancyker
on Sep 2, 2014 0:15