fixed to read all the bytes of the candidate random number at once