From f62e82ecd0a25b3a90eee72803db7e33d4cbab83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sat, 14 Aug 2021 23:51:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/string.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/string.go b/util/string.go index a4fde46..0ce9684 100644 --- a/util/string.go +++ b/util/string.go @@ -24,8 +24,8 @@ func GenRandomString(source string, length uint) string { return "" } if len(source) == 0 { - //字符串为空,默认字符源为如下: - source = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + //字符串为空,默认字符源为如下(去除易混淆的i/l): + source = "0123456789abcdefghjkmnopqrstuvwxyzABCDEFGHJKMNOPQRSTUVWXYZ" } strByte := []byte(source) var genStrByte = make([]byte, 0)