Turbine engines with FADEC have a Permanent Magnet Generator (PMG) driven by the engine as a back-up to the A/C bus, so that if all electrics fail the engine looks after itself.
How did these light aircraft engines get certified so that a single failure can cause disaster?
Piston engines have 2 magnetos for back-up.