Changes to how random numbers are generated to allow better random number generation.