13 lines
157 B
Go
Raw Normal View History

package uid
import (
"crypto/rand"
"encoding/hex"
)
func Generate() string {
b := make([]byte, 16)
_, _ = rand.Read(b)
return hex.EncodeToString(b)
}