package pls import ( "crypto/rand" "encoding/hex" ) func GenerateRandomHex(length int) string { nonceBytes := make([]byte, length) rand.Read(nonceBytes) return hex.EncodeToString(nonceBytes) }