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

Function randomWord

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

Source from the content-addressed store, hash-verified

154}
155
156func randomWord(r *rand.Rand) string {
157 words := []string{
158 "apple",
159 "banana",
160 "cherry",
161 "date",
162 "elderberry",
163 "fig",
164 "grape",
165 "honeydew",
166 "kiwi",
167 "lemon",
168 "lime",
169 "mango",
170 "nectarine",
171 "orange",
172 "pear",
173 "pineapple",
174 }
175 return words[r.Intn(len(words))]
176}

Callers 3

generateFeatureFunction · 0.85
randomSQLFunction · 0.85
randomWordListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected