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

Should be some gains in simplicity.