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

Function randomAlphanumeric

pkg/drain/testdata/generate-random-span-names/main.go:111–118  ·  view source on GitHub ↗
(r *rand.Rand)

Source from the content-addressed store, hash-verified

109}
110
111func randomAlphanumeric(r *rand.Rand) string {
112 length := r.Intn(10) + 1
113 chars := make([]byte, length)
114 for i := range chars {
115 chars[i] = byte(r.Intn(10) + 48)
116 }
117 return string(chars)
118}
119
120func randomProtocol(r *rand.Rand) string {
121 protocols := []string{

Callers 1

generateFeatureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected