package webhook import ( "crypto/rand" "encoding/hex" ) // genToken generates a 64-character hex token using crypto/rand. func genToken() string { b := make([]byte, 32) if _, err := rand.Read(b); err != nil { panic("crypto/rand failed: " + err.Error()) } return hex.EncodeToString(b) }