MCPcopy
hub / github.com/etcd-io/etcd / mustRandBytes

Function mustRandBytes

tools/benchmark/cmd/util.go:150–158  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

148}
149
150func mustRandBytes(n int) []byte {
151 rb := make([]byte, n)
152 _, err := rand.Read(rb)
153 if err != nil {
154 fmt.Fprintf(os.Stderr, "failed to generate value: %v\n", err)
155 os.Exit(1)
156 }
157 return rb
158}
159
160func newReport() report.Report {
161 p := "%4.4f"

Callers 5

putFuncFunction · 0.85
mixedTxnFuncFunction · 0.85
watchLatencyFuncFunction · 0.85
txnPutFuncFunction · 0.85
stmFuncFunction · 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…