  Large deviations quantify the occurrence of events that depart from the
average behavior of a system. In this note we derive an exact expression for
their moment generating function. This expression offers a new tool to
investigate the behavior of mesoscopic systems. To illustrate our result, we
derive the exact formulae for the current fluctuations in a disordered ring and
in a model of ion transport through a membrane.
