MCPcopy Create free account
hub / github.com/apple/foundationdb / getRandomRouterTag

Method getRandomRouterTag

fdbserver/TagPartitionedLogSystem.actor.cpp:1761–1763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1759}
1760
1761Tag TagPartitionedLogSystem::getRandomRouterTag() const {
1762 return Tag(tagLocalityLogRouter, deterministicRandom()->randomInt(0, logRouterTags));
1763}
1764
1765Tag TagPartitionedLogSystem::getRandomTxsTag() const {
1766 return Tag(tagLocalityTxs, deterministicRandom()->randomInt(0, txsTags));

Callers 2

writeMessageMethod · 0.80
writeTypedMessageMethod · 0.80

Calls 3

TagClass · 0.85
deterministicRandomFunction · 0.85
randomIntMethod · 0.45

Tested by

no test coverage detected