chore: add uuid to token

refactor/fs
Noah Hsu 2022-07-12 14:01:43 +08:00
parent 6ebb36b2eb
commit b1d563c874
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package random
import (
"github.com/google/uuid"
"math/rand"
"time"
)
@ -18,7 +19,7 @@ func String(n int) string {
}
func Token() string {
return String(64)
return uuid.NewString() + String(64)
}
func init() {