def uuid(self, name=None, pad_length=None):
        if pad_length is None:
            pad_length = self._length

        # If no name is given, generate a random UUID.
        if name is None:
            uuid = _uu.uuid4()
        elif "http" not in name.lower():
            uuid = _uu.uuid5(_uu.NAMESPACE_DNS, name)
        else:
            uuid = _uu.uuid5(_uu.NAMESPACE_URL, name)
        return self.encode(uuid, pad_length)
Generate and return a UUID.
dataset/ETHPy150Open stochastic-technologies/shortuuid/shortuuid/main.py/ShortUUID.uuid