Files
livekit-3d/pkg/utils/secret.go
T
2020-12-25 22:31:11 -08:00

13 lines
214 B
Go

package utils
import (
"github.com/google/uuid"
"github.com/lytics/base62"
)
func RandomSecret() string {
// cannot error
bin, _ := uuid.New().MarshalBinary()
return base62.StdEncoding.EncodeToString(bin)
}