MCPcopy
hub / github.com/etcd-io/bbolt / randomInt

Function randomInt

tests/robustness/powerfailure_test.go:322–326  ·  view source on GitHub ↗
(t *testing.T, max int)

Source from the content-addressed store, hash-verified

320}
321
322func randomInt(t *testing.T, max int) int {
323 n, err := rand.Int(rand.Reader, big.NewInt(int64(max)))
324 assert.NoError(t, err)
325 return int(n.Int64())
326}

Callers 1

doPowerFailureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected