Horde_Crypt_Blowfish_Mcrypt::setIv PHP Method

setIv() public method

public setIv ( $iv = null )
    public function setIv($iv = null)
    {
        $this->iv = is_null($iv) ? mcrypt_create_iv(Horde_Crypt_Blowfish::IV_LENGTH, MCRYPT_RAND) : $iv;
    }