private function isRefreshNeededByProbability()
    {
        if (is_null($this->refreshProbability)) {
            return false;
        }
        $rand = (float) mt_rand() / (float) mt_getrandmax();
        if ($this->refreshProbability == 1.0 || $rand <= $this->refreshProbability) {
            return true;
        }
        return false; // @codeCoverageIgnore
    }
private function isRefreshNeededByProbability()
    {
        if (is_null($this->refreshProbability)) {
            return false;
        }
        $rand = (float) mt_rand() / (float) mt_getrandmax();
        if ($this->refreshProbability == 1.0 || $rand <= $this->refreshProbability) {
            return true;
        }
        return false; // @codeCoverageIgnore
    }
private function isRefreshNeededByProbability ( ) { if ( is_null ( $ this -> refreshProbability ) ) { return false ; } $ rand = ( float ) mt_rand ( ) / ( float ) mt_getrandmax ( ) ; if ( $ this -> refreshProbability == 1.0 || $ rand <= $ this -> refreshProbability ) { return true ; } return false ; // @codeCoverageIgnore }
Determines if the probability test of session refresh succeeded
according to the desired percent.

@return bool
Determines if the probability test of session refresh succeeded according to the desired percent .