An analysis of seismic attenuation in random porous media