update go mod

This commit is contained in:
2023-08-11 15:32:00 +08:00
parent 14d80e0f6f
commit 34e3b52e4f
3 changed files with 36 additions and 19 deletions

View File

@ -11,7 +11,7 @@ import (
"sync"
"time"
"git.zhangdeman.cn/zhangdeman/util"
"git.zhangdeman.cn/zhangdeman/wrapper"
)
// NewRuntime 获取runtime实例
@ -22,7 +22,7 @@ import (
func NewRuntime(traceID string, stackOffset int) *Runtime {
if len(traceID) == 0 {
// 若不指定 trace id , 随机生成
traceID = util.String.Md5(util.String.GenRandomMd5())
traceID = wrapper.StringFromRandom(32, "").Md5().Value
}
if stackOffset < 0 {