package idempotency import("crypto/rand";"encoding/hex") // NewID is for a new authorized intent; retain the returned ID across retries. func NewID()(string,error){var b [16]byte;if _,err:=rand.Read(b[:]);err!=nil{return "",err};return "wab-"+hex.EncodeToString(b[:]),nil}