MCPcopy Create free account
hub / github.com/cortexproject/cortex / NewRandomTokenGenerator

Function NewRandomTokenGenerator

pkg/ring/token_generator.go:34–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32type RandomTokenGenerator struct{}
33
34func NewRandomTokenGenerator() TokenGenerator {
35 return &RandomTokenGenerator{}
36}
37
38func (g *RandomTokenGenerator) GenerateTokens(ring *Desc, _, _ string, numTokens int, _ bool) []uint32 {
39 if numTokens <= 0 {

Calls

no outgoing calls