Replace rand() with mt_rand()

enricodias4654

Member
YetiShare User
Jan 13, 2015
411
1
16
I notice the rand() function in several parts in the core and in some plugins. rand() does not produce good random numbers. It's easy to see the difference between rand and mt_rand by creating an image with random values on each pixel: http://i.stack.imgur.com/YctNG.png