Setup/Install/DataMigrationHelper.php
private function generateAndSaveCode()
    {
        $code = $this->randomMath->getRandomString(32);
        $this->config->saveConfig(
            \Dotdigitalgroup\Email\Helper\Config::XML_PATH_CONNECTOR_DYNAMIC_CONTENT_PASSCODE,
            $code,
            'default',
            '0'
        );
    }
private function generateAndSaveCode()
    {
        $code = $this->randomMath->getRandomString(32);
        $this->config->saveConfig(
            \Dotdigitalgroup\Email\Helper\Config::XML_PATH_CONNECTOR_DYNAMIC_CONTENT_PASSCODE,
            $code,
            'default',
            '0'
        );
    }
private function generateAndSaveCode ( ) { $ code = $ this -> randomMath -> getRandomString ( 32 ) ; $ this -> config -> saveConfig ( \ Dotdigitalgroup \ Email \ Helper \ Config :: XML_PATH_CONNECTOR_DYNAMIC_CONTENT_PASSCODE , $ code , 'default' , '0' ) ; }
Generate a random string and save in config
@throws \Magento\Framework\Exception\LocalizedException
Generate a random string and save in config