MCPcopy
hub / github.com/minio/minio-go / newRandomReader

Function newRandomReader

functional_tests.go:306–308  ·  view source on GitHub ↗
(seed, size int64)

Source from the content-addressed store, hash-verified

304}
305
306func newRandomReader(seed, size int64) io.Reader {
307 return io.LimitReader(rand.New(rand.NewSource(seed)), size)
308}
309
310func mustCrcReader(r io.Reader) uint32 {
311 crc := crc32.NewIEEE()

Callers 3

getDataReaderFunction · 0.85
testPutObjectStreamingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected