Generators and early alternators used external voltage regulators; more modern alternators have voltage regulators integrated in the alternator.