Primordial black holes in the excursion set theory