(seed int64)
| 32 | } |
| 33 | |
| 34 | func NewRandomTokenGeneratorWithSeed(seed int64) *RandomTokenGenerator { |
| 35 | return &RandomTokenGenerator{r: rand.New(rand.NewSource(seed))} |
| 36 | } |
| 37 | |
| 38 | // GenerateTokens generates at most requestedTokensCount unique random tokens, none of which clashes with |
| 39 | // the given allTakenTokens, representing the set of all tokens currently present in the ring. |
no outgoing calls