From 5f75853cd6f84101e5b2133e9eb59484fed4376e Mon Sep 17 00:00:00 2001 From: JungJun Date: Wed, 17 Aug 2022 10:44:52 +0900 Subject: [PATCH] =?UTF-8?q?sid=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- icsstat/icsstat.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icsstat/icsstat.go b/icsstat/icsstat.go index cfa4340..5de3a52 100644 --- a/icsstat/icsstat.go +++ b/icsstat/icsstat.go @@ -169,7 +169,7 @@ func StatsCommandVG(t *icsnet.IcsTCPNet, bufend string) { statInfos := new(StatInfos) s := GetIcsSid() - randNum := fmt.Sprintf("%d4", rand.Intn(9999)) + randNum := fmt.Sprintf("%04d", rand.Intn(9999)) // defer func() { // if err := recover(); err != nil { @@ -274,7 +274,7 @@ func StatsCommandVA(t *icsnet.IcsTCPNet, bufend string) { statInfos := new(StatInfos) s := GetIcsSid() - randNum := fmt.Sprintf("%d4", rand.Intn(9999)) + randNum := fmt.Sprintf("%04d", rand.Intn(9999)) defer t.Close()