Remove the use of srand by localizing random ordering logic
Merge pull request #1120 from ToadJamb/remove-srand-leakage

Remove the use of srand by localizing random ordering logic