mirror of
https://github.com/VaalaCat/frp-panel.git
synced 2025-09-27 03:36:10 +08:00
9 lines
176 B
Go
9 lines
176 B
Go
package utils
|
|
|
|
import "github.com/lucasepe/codename"
|
|
|
|
func NewCodeName(tokenLength int) string {
|
|
rng, _ := codename.DefaultRNG()
|
|
return codename.Generate(rng, tokenLength)
|
|
}
|