If you are sure the wires coming from genny are 120vac, and the light is rated for 120vac then polarity doesn’t matter. AC current is both positive and negative. The led being a diode will block all the current in the wrong polarity. The resister will reduce the voltage to something the led can work with.