Lines Matching defs: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()
190 * @param $rand float some random number between 0 and 1
193 protected function generateMagicCode($ident, $rand)
196 $rand *= 0xFFFFF; // bitmask from the random number
197 $comb = (int)$rand ^ $ident; // combine both values
207 * @param $rand float some random number between 0 and 1
210 public function generateCaptchaCode($ident, $rand)
212 $numbers = $this->generateMagicCode($ident, $rand);
229 * @param $rand float some random number between 0 and 1
232 protected function generateMath($ident, $rand)
234 $numbers = $this->generateMagicCode($ident, $rand);