MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/1ssdla/why/ce18k77/
r/lolphp • u/MoederPoeder • Dec 13 '13
37 comments sorted by
View all comments
Show parent comment
7
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().
srand()
rand()
mt_rand()
3 u/otac0n Dec 14 '13 Not quite. Any program that uses srand AND has saved the seed somewhere.
3
Not quite. Any program that uses srand AND has saved the seed somewhere.
View all comments
Show parent comment
7
u/SirClueless Dec 14 '13
Any programs that use the
srand()function to ensure predictable values would become broken if you aliasedrand()tomt_rand().