code: def random(self, length=22):
          
          random_num = int(binascii.b2a_hex(os.urandom(length)), 16)
          return self._num_to_string(random_num, pad_to_length=length)[:length]
docs: Generate and return a cryptographically-secure short random string
          of the specified length.