MCPcopy
hub / github.com/containerd/containerd / bytesFor

Function bytesFor

core/metadata/db_test.go:665–673  ·  view source on GitHub ↗
(i int64)

Source from the content-addressed store, hash-verified

663}
664
665func bytesFor(i int64) []byte {
666 r := rand.New(rand.NewSource(i))
667 var b [256]byte
668 _, err := r.Read(b[:])
669 if err != nil {
670 panic(err)
671 }
672 return b[:]
673}
674
675func digestFor(i int64) digest.Digest {
676 r := rand.New(rand.NewSource(i))

Callers 2

TestMetadataCollectorFunction · 0.85
benchmarkTriggerFunction · 0.85

Calls 1

ReadMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…