refactor: deprecate internal/utils/rand.RandStr

This commit is contained in:
Fu Diwei
2024-10-31 19:53:48 +08:00
parent 4fec0036cb
commit 0ceb44a7cd
4 changed files with 7 additions and 11 deletions

View File

@@ -5,7 +5,8 @@ import (
"time"
)
// RandStr 随机生成指定长度字符串
// Deprecated: this will be removed in the future.
// 随机生成指定长度字符串
func RandStr(n int) string {
seed := time.Now().UnixNano()
source := rand.NewSource(seed)