diff --git a/www/nginx/src/opnsense/scripts/nginx/ngx_autoblock.php b/www/nginx/src/opnsense/scripts/nginx/ngx_autoblock.php index 63e5c6f7a..d43ea8f98 100755 --- a/www/nginx/src/opnsense/scripts/nginx/ngx_autoblock.php +++ b/www/nginx/src/opnsense/scripts/nginx/ngx_autoblock.php @@ -113,7 +113,7 @@ function get_files_lastmodified(array $files): array // - No content => -1 $times = []; foreach ($files as $file) { - $mtime = @filemtime($file) ?: rand(); + $mtime = @filemtime($file) ?: random_int(0, getrandmax()); $times[$file] = @filesize($file) === 0 ? -1 : $mtime; } return $times;