Revision a8cee257
Added by Assos Assos almost 5 years ago
drupal7/sites/all/modules/captcha/image_captcha/image_captcha.user.inc | ||
---|---|---|
31 | 31 |
if ($code !== FALSE) { |
32 | 32 |
// Seed the random generators used for image CAPTCHA distortion based on session and code |
33 | 33 |
// to counter attacks that re-request the same challenge and pick the simplest image one or combine info. |
34 |
$seed = hexdec(substr(md5($captcha_sid . $code), 0, 8)); |
|
34 |
$seed = (int) hexdec(substr(md5($captcha_sid . $code), 0, 8));
|
|
35 | 35 |
srand($seed); |
36 | 36 |
mt_srand($seed); |
37 | 37 |
// Generate the image. |
Also available in: Unified diff
Weekly update of contrib modules