src/Gregwar/Captcha/CaptchaBuilder.php
protected function rand($min, $max)
    {
        if (!is_array($this->fingerprint)) {
            $this->fingerprint = array();
        }

        if ($this->useFingerprint) {
            $value = current($this->fingerprint);
            next($this->fingerprint);
        } else {
            $value = mt_rand($min, $max);
            $this->fingerprint[] = $value;
        }

        return $value;
    }
protected function rand($min, $max)
    {
        if (!is_array($this->fingerprint)) {
            $this->fingerprint = array();
        }

        if ($this->useFingerprint) {
            $value = current($this->fingerprint);
            next($this->fingerprint);
        } else {
            $value = mt_rand($min, $max);
            $this->fingerprint[] = $value;
        }

        return $value;
    }
protected function rand ( $ min , $ max ) { if ( ! is_array ( $ this -> fingerprint ) ) { $ this -> fingerprint = array ( ) ; } if ( $ this -> useFingerprint ) { $ value = current ( $ this -> fingerprint ) ; next ( $ this -> fingerprint ) ; } else { $ value = mt_rand ( $ min , $ max ) ; $ this -> fingerprint [ ] = $ value ; } return $ value ; }
Returns a random number or the next number in the
fingerprint
Returns a random number or the next number in the fingerprint