Remove unnecessary headers. Add init_seed_srand.