Lines Matching refs:rand
54 $rand = (float)(random_int(0, 10000)) / 10000;
55 $cookie = new FileCookie($this->fixedIdent(), $rand);
59 $code = $this->generateMath($this->fixedIdent(), $rand);
66 $code = $this->generateCaptchaCode($this->fixedIdent(), $rand);
69 $secret = $this->encrypt($rand);
131 $rand = $this->decrypt($field_sec);
134 $code = $this->generateMath($this->fixedIdent(), $rand);
139 $code = $this->generateCaptchaCode($this->fixedIdent(), $rand);
146 $rand === false ||
149 !(new FileCookie($this->fixedIdent(), $rand))->check()
193 protected function generateMagicCode($ident, $rand) argument
196 $rand *= 0xFFFFF; // bitmask from the random number
197 $comb = (int)$rand ^ $ident; // combine both values
210 public function generateCaptchaCode($ident, $rand) argument
212 $numbers = $this->generateMagicCode($ident, $rand);
232 protected function generateMath($ident, $rand) argument
234 $numbers = $this->generateMagicCode($ident, $rand);