MCPcopy
hub / github.com/perkeep/perkeep / randBytesSrc

Function randBytesSrc

pkg/blobserver/blobpacked/blobpacked_test.go:142–149  ·  view source on GitHub ↗
(n int, src int64)

Source from the content-addressed store, hash-verified

140}
141
142func randBytesSrc(n int, src int64) []byte {
143 r := rand.New(rand.NewSource(src))
144 s := make([]byte, n)
145 for i := range s {
146 s[i] = byte(r.Int63())
147 }
148 return s
149}
150
151func randBytes(n int) []byte {
152 return randBytesSrc(n, 42)

Callers 2

randBytesFunction · 0.85
TestReindexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected