original_string: public function generate()
      {
          $str     = '';
          $keysize = strlen($this->_alphabet);
  
          for ($i = 0; $i < $this->_length; ++$i) {
              $str .= $this->_alphabet[\Sodium\randombytes_uniform($keysize)];
          }
  
          return $str;
      }
code: public function generate()
      {
          $str     = '';
          $keysize = strlen($this->_alphabet);
  
          for ($i = 0; $i < $this->_length; ++$i) {
              $str .= $this->_alphabet[\Sodium\randombytes_uniform($keysize)];
          }
  
          return $str;
      }
code_tokens: public function generate ( ) { $ str = '' ; $ keysize = strlen ( $ this -> _alphabet ) ; for ( $ i = 0 ; $ i < $ this -> _length ; ++ $ i ) { $ str .= $ this -> _alphabet [ \ Sodium \ randombytes_uniform ( $ keysize ) ] ; } return $ str ; }
docstring: Generates a new identifier.
  @return string generated identifier
docstring_tokens: Generates a new identifier .