MCPcopy
hub / github.com/grafana/tempo / randString

Function randString

tempodb/blocklist/poller_test.go:1327–1333  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

1325var chars = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
1326
1327func randString(n int) string {
1328 b := make([]rune, n)
1329 for i := range b {
1330 b[i] = chars[rand.Intn(len(chars))]
1331 }
1332 return string(b)
1333}
1334
1335func newPerTenant(tenantCount, blockCount int) PerTenant {
1336 var (

Callers 2

newPerTenantFunction · 0.85
newPerTenantCompactedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected