MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / generateBoundary

Function generateBoundary

internal/outbound/compose.go:273–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

271}
272
273func generateBoundary() string {
274 b := make([]byte, 16)
275 if _, err := rand.Read(b); err != nil {
276 // crypto/rand failure means the OS RNG is broken — nothing
277 // downstream will work either. Panic so the caller surfaces a
278 // 500 rather than silently emitting an all-zero boundary that
279 // could collide across messages.
280 panic(fmt.Sprintf("compose: crypto/rand failed: %v", err))
281 }
282 return fmt.Sprintf("e2a_%x", b)
283}

Callers 2

ComposeMultipartMessageFunction · 0.85

Calls 1

makeFunction · 0.85

Tested by

no test coverage detected