MCPcopy Create free account
hub / github.com/containerd/nerdctl / randomRef

Function randomRef

pkg/cmd/image/import.go:348–352  ·  view source on GitHub ↗
(prefix string)

Source from the content-addressed store, hash-verified

346}
347
348func randomRef(prefix string) string {
349 var b [6]byte
350 _, _ = rand.Read(b[:])
351 return prefix + base64.RawURLEncoding.EncodeToString(b[:])
352}

Callers 1

Calls 1

ReadMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…