feat: token and reset

This commit is contained in:
Noah Hsu
2022-06-28 14:18:10 +08:00
parent 7903ed1f52
commit 5dbf5db4ff
7 changed files with 89 additions and 25 deletions

View File

@ -17,6 +17,10 @@ func String(n int) string {
return string(b)
}
func Token() string {
return String(64)
}
func init() {
s := rand.NewSource(time.Now().UnixNano())
Rand = rand.New(s)