'Return N bytes from the RNG.'

def read(self, N):

    if self.closed:
        raise ValueError('I/O    operation    on    closed    file')
    if (not isinstance(N, (long, int))):
        raise TypeError('an    integer    is    required')
    if (N < 0):
        raise ValueError('cannot    read    to    end    of    infinite    stream')
    self._ec.collect()
    retval = self._fa.random_data(N)
    self._check_pid()
    return retval
