mirror of
https://github.com/DzzXH/DzzOffice.git
synced 2026-04-10 13:46:43 +08:00
更新至v1.87,更新内容在笔记中查看
This commit is contained in:
@@ -513,7 +513,7 @@ function random($length) {
|
||||
$max = strlen($chars) - 1;
|
||||
PHP_VERSION < '4.2.0' && mt_srand((double)microtime() * 1000000);
|
||||
for($i = 0; $i < $length; $i++) {
|
||||
$hash .= $chars[mt_rand(0, $max)];
|
||||
$hash .= $chars[random_int(0, $max)];
|
||||
}
|
||||
return $hash;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user