MCPcopy
hub / github.com/go-gorm/gorm / getRand

Function getRand

tests/lru_test.go:524–530  ·  view source on GitHub ↗
(tb testing.TB)

Source from the content-addressed store, hash-verified

522}
523
524func getRand(tb testing.TB) int64 {
525 out, err := rand.Int(rand.Reader, big.NewInt(math.MaxInt64))
526 if err != nil {
527 tb.Fatal(err)
528 }
529 return out.Int64()
530}

Callers 4

Calls

no outgoing calls

Tested by

no test coverage detected