MCPcopy
hub / github.com/containerd/containerd / uniqueRef

Function uniqueRef

plugins/diff/erofs/compare_linux.go:192–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190}
191
192func uniqueRef() string {
193 t := time.Now()
194 var b [3]byte
195 // Ignore read failures, just decreases uniqueness
196 rand.Read(b[:])
197 return fmt.Sprintf("%d-%s", t.UnixNano(), base64.URLEncoding.EncodeToString(b[:]))
198}

Callers 1

CompareMethod · 0.70

Calls 1

ReadMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…