laravel-u-editor icon indicating copy to clipboard operation
laravel-u-editor copied to clipboard

This's a bug ?

Open jiangguoliang opened this issue 8 years ago • 2 comments

ErrorException in Upload.php line 131: rand() expects parameter 2 to be integer, float given


 $randNum = rand(1, 10000000000) . rand(1, 10000000000);

changed to `

    $randNum = rand(1, 100000000) . rand(1, 100000000);

`

jiangguoliang avatar Dec 21 '16 07:12 jiangguoliang

var_dump(PHP_INT_MAX)

stevenyangecho avatar Dec 21 '16 07:12 stevenyangecho

建议改成下面样,兼容32位和64位 $randNum = rand(1, 2000000000) . rand(1, 2000000000);

jianhuawang avatar Jan 24 '17 01:01 jianhuawang