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