Skip to content

Commit cb7b015

Browse files
authored
Merge pull request dokuwiki#4493 from dokuwiki/bot/autofix
🤖 Automatic code style fixes
2 parents 048aa46 + f7f6f5f commit cb7b015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ function auth_login($user, $pass, $sticky = false, $silent = false)
305305

306306
if (!empty($user)) {
307307
//usual login
308-
if (!empty($pass)) usleep(rand(0, 250)); // add a random delay to prevent timing attacks #4491
308+
if (!empty($pass)) usleep(random_int(0, 250)); // add a random delay to prevent timing attacks #4491
309309
if (!empty($pass) && $auth->checkPass($user, $pass)) {
310310
// make logininfo globally available
311311
$INPUT->server->set('REMOTE_USER', $user);

0 commit comments

Comments
 (0)