Modified to reseed generator, though could improve further