Replace random.randint() with os.urandom()
Merge pull request #16322 from thusoy/proper-random

Replace random.randint() with os.urandom()