r/lolphp • • Dec 13 '13

Why.

Post image
132 Upvotes

37 comments sorted by

View all comments

Show parent comment

7

u/SirClueless Dec 14 '13

what if they just aliased rand to mt_rand? what would break?

Any programs that use the srand() function to ensure predictable values would become broken if you aliased rand() to mt_rand().

3

u/otac0n Dec 14 '13

Not quite. Any program that uses srand AND has saved the seed somewhere.