Fix random number generator to get enough bytes for the required number of words.