Switched rand() to mt_rand()
Fix cache blasting on nix
Merge pull request #1543 from Slamdunk/minor/mt-rand

Switch rand() to mt_rand()