mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
[ticket/10042] GD CAPTCHA: Call phpbb_mt_rand() where required.
PHPBB3-10042
This commit is contained in:
parent
c6c2a23ecb
commit
18daf6345f
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue