Usually in physics we use the notion generator to describe the infinitesimal elements associated with any finite Lie group transformation.
But in the context of the Hamiltonian formalism, all authors carefully use the notion generating function to describe the infinitesimal elements responsible for canonical transformations.
Is there a difference between the two concepts or can the word "generating function" be safely replaced with generator everywhere?
Concretely, the generating function responsible for a canonical transformation acts on the phase space coordinates via
\begin{align} q \to q' &= q + \epsilon Q \circ q = q + \epsilon \{Q,q\} \\ p \to p' &= p + \epsilon Q \circ p = p + \epsilon \{Q,p\} \, . \end{align} And usually, we call the objects responsible for infinitesimal transformations generators. I was wondering, why in the context of Hamiltonian mechanics all authors use the new term "generating function" instead. One guess would be that generating functions are the representation of our (abstract) generators in phase space.