Model, validation, and characterization of a robust quantum random number generator based on photon arrival time comparison