MCPcopy
hub / github.com/grafana/dskit / RandomTokenGenerator

Struct RandomTokenGenerator

ring/token_generator.go:25–28  ·  ring/token_generator.go::RandomTokenGenerator

Source from the content-addressed store, hash-verified

23}
24
25type RandomTokenGenerator struct {
26 m sync.Mutex
27 r *rand.Rand
28}
29
30func NewRandomTokenGenerator() *RandomTokenGenerator {
31 return &RandomTokenGenerator{r: rand.New(rand.NewSource(time.Now().UnixNano()))}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected