Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
322
func
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
doPowerFailure
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected