The zeroes of the partition function of the random energy model