GenerateTokens make numTokens unique random tokens, none of which clash with takenTokens. Generated tokens are sorted. GenerateTokens can return any number of token between 0 and numTokens if force is set to false. If force is set to true, all tokens needs to be generated
(ring *Desc, id, zone string, numTokens int, force bool)
| 27 | // GenerateTokens can return any number of token between 0 and numTokens if force is set to false. |
| 28 | // If force is set to true, all tokens needs to be generated |
| 29 | GenerateTokens(ring *Desc, id, zone string, numTokens int, force bool) []uint32 |
| 30 | } |
| 31 | |
| 32 | type RandomTokenGenerator struct{} |
no outgoing calls