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

Method generateRandomInt

pkg/util/trace_info.go:158–162  ·  view source on GitHub ↗
(min, max int64)

Source from the content-addressed store, hash-verified

156}
157
158func (t *TraceInfo) generateRandomInt(min, max int64) int64 {
159 min++
160 number := min + t.r.Int63n(max-min)
161 return number
162}
163
164func (t *TraceInfo) makeThriftBatch(traceIDHigh, traceIDLow int64) *jaeger.Batch {
165 var spans []*jaeger.Span

Callers 9

TestGenerateRandomIntFunction · 0.95
EmitBatchesMethod · 0.95
makeThriftBatchMethod · 0.95
generateRandomStringMethod · 0.95
generateRandomLogsMethod · 0.95

Calls

no outgoing calls

Tested by 1

TestGenerateRandomIntFunction · 0.76