src/csrf/CSRFGuard.php
protected function generateToken()
    {
        // Generate new CSRF token
        $token = bin2hex(random_bytes($this->strength));
        $this->storage[$this->key] = $token;
        return $token;
    }
protected function generateToken()
    {
        // Generate new CSRF token
        $token = bin2hex(random_bytes($this->strength));
        $this->storage[$this->key] = $token;
        return $token;
    }
Generates a new CSRF token

@return string