'Wrapper around C{os.urandom} that cleanly manage its absence.'

def _osUrandom(self, nbytes):

    try:
        return os.urandom(nbytes)
    except (AttributeError, NotImplementedError) as e:
        raise SourceNotAvailable(e)
