From 61980ef0b828749e6542b653c280d0983a340929 Mon Sep 17 00:00:00 2001 From: Monster Date: Thu, 1 Feb 2024 03:51:27 +0000 Subject: [PATCH] =?UTF-8?q?update=20services/core/ability/utils/include/en?= =?UTF-8?q?crypt=5Futils.h.=20=E5=88=A0=E9=99=A4=E6=9C=AA=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Monster --- services/core/ability/utils/include/encrypt_utils.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/services/core/ability/utils/include/encrypt_utils.h b/services/core/ability/utils/include/encrypt_utils.h index 0f8b53e4..b277216b 100644 --- a/services/core/ability/utils/include/encrypt_utils.h +++ b/services/core/ability/utils/include/encrypt_utils.h @@ -30,16 +30,6 @@ static const std::string ENCRYPT_STR = "****"; class EncryptUtils { public: - static int64_t GetRand(int32_t min, int32_t max) - { - // 随机 min ~ max值 - if (max < min) { - return min; - } - srand(time(nullptr)); - return min + rand() % (max - min); - } - static std::string EncryptUrl(const std::string &url) { std::string encryptUrl = url; -- Gitee