Reverted generate_random to default.