Skip to content

Commit f1e129f

Browse files
author
zhaoxiang
committed
modified 兼容PHP-7.4.*版本
1 parent 28c8927 commit f1e129f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/util/Strs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Strs {
2020
* @return string
2121
*/
2222
public static function uuid(): string {
23-
$charId = md5(uniqid(mt_rand(), true));
23+
$charId = md5(uniqid(strval(mt_rand()), true));
2424
$hyphen = chr(45);
2525
$uuid = chr(123)
2626
. substr($charId, 0, 8) . $hyphen

0 commit comments

Comments
 (0)