mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
www/nginx: replace rand() usage
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user