From fcbd94ea33f266cef656e417d7c7c19d9d55984f Mon Sep 17 00:00:00 2001 From: zhaoxiang Date: Tue, 7 Aug 2018 19:20:54 +0800 Subject: [PATCH] =?UTF-8?q?modified=20=E5=AE=8C=E5=96=84=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/util/StrRandom.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/util/StrRandom.php b/application/util/StrRandom.php index 95acb03..75bdff2 100644 --- a/application/util/StrRandom.php +++ b/application/util/StrRandom.php @@ -35,6 +35,11 @@ class StrRandom { return floatval($intNum . '.' . $rand . $floatEnd); } + /** + * 构建随机IP地址 + * @return string + * @author zhaoxiang + */ public static function randomIp() { $ipLong = [ ['607649792', '608174079'], // 36.56.0.0-36.63.255.255