aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/captcha/captcha_gd.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-03-05 22:21:45 +0100
committerAndreas Fischer <bantu@phpbb.com>2011-03-05 22:59:36 +0100
commit18daf6345f64e59f651c43a3150d9e139ac2a4cc (patch)
treeadc9467b132c12bc9fc3bb7f5d9b94be78ab4015 /phpBB/includes/captcha/captcha_gd.php
parentc6c2a23ecb10b4b54e7e9b703d14e8c7cda6ad55 (diff)
downloadforums-18daf6345f64e59f651c43a3150d9e139ac2a4cc.tar
forums-18daf6345f64e59f651c43a3150d9e139ac2a4cc.tar.gz
forums-18daf6345f64e59f651c43a3150d9e139ac2a4cc.tar.bz2
forums-18daf6345f64e59f651c43a3150d9e139ac2a4cc.tar.xz
forums-18daf6345f64e59f651c43a3150d9e139ac2a4cc.zip
[ticket/10042] GD CAPTCHA: Call phpbb_mt_rand() where required.
PHPBB3-10042
Diffstat (limited to 'phpBB/includes/captcha/captcha_gd.php')
-rw-r--r--phpBB/includes/captcha/captcha_gd.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/captcha/captcha_gd.php b/phpBB/includes/captcha/captcha_gd.php
index 7a3f4f46ab..6d859a4ecc 100644
--- a/phpBB/includes/captcha/captcha_gd.php
+++ b/phpBB/includes/captcha/captcha_gd.php
@@ -77,7 +77,7 @@ class captcha
{
$denom = ($code_len - $i);
$denom = max(1.3, $denom);
- $offset[$i] = mt_rand(0, (int) round((1.5 * $width_avail) / $denom));
+ $offset[$i] = phpbb_mt_rand(0, (int) round((1.5 * $width_avail) / $denom));
$width_avail -= $offset[$i];
}