“…Though these imperfections cannot nowadays be overcome completely, in many applications, especially in ones related to security, like quantum cryptography and quantum random number generators, it is sufficient to provide a precise quantitative characterisation of the imperfections, thus enabling the users to distinguish the regular non-ideal detector operation from an intrusion of a malevolent adversary. And though at present the quantum efficiency, deadtime and dark count rate of SPADs can be measured with acceptable precision and are typically included into the detector specifications by the manufacturer, the situation with afterpulses is far less optimistic, notwithstanding considerable efforts in this area [4,5,6,7,8,9,10,11,12]. In particular the exact shape of the distribution function for the apterpulse waiting time is not generally known and the methods for its precise characterisation are still in the process of development.…”