Hydrodynamics and the fluctuation theorem