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

Function uniqueRef

plugins/diff/walking/differ.go:209–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207}
208
209func uniqueRef() string {
210 t := time.Now()
211 var b [3]byte
212 // Ignore read failures, just decreases uniqueness
213 rand.Read(b[:])
214 return fmt.Sprintf("%d-%s", t.UnixNano(), base64.URLEncoding.EncodeToString(b[:]))
215}

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…