MCPcopy Index your code
hub / github.com/docker/cli / randomID

Function randomID

cli-plugins/socket/socket.go:131–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129}
130
131func randomID() string {
132 b := make([]byte, 16)
133 if _, err := rand.Read(b); err != nil {
134 panic(err) // This shouldn't happen
135 }
136 return hex.EncodeToString(b)
137}
138
139// ConnectAndWait connects to the socket passed via well-known env var,
140// if present, and attempts to read from it until it receives an EOF, at which

Callers 1

NewPluginServerFunction · 0.85

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…