PMA\libraries\plugins\auth\AuthenticationCookie::createIV PHP Method

createIV() public method

Initialization Store the initialization vector because it will be needed for further decryption. I don't think necessary to have one iv per server so I don't put the server number in the cookie name.
public createIV ( ) : void
return void
    public function createIV()
    {
        /* Testsuite shortcut only to allow predictable IV */
        if (!is_null($this->_cookie_iv)) {
            return $this->_cookie_iv;
        }
        if (self::useOpenSSL()) {
            return openssl_random_pseudo_bytes($this->getIVSize());
        } else {
            return Crypt\Random::string($this->getIVSize());
        }
    }