MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / randomState

Method randomState

test/chbench/chbench/src/DataSource.cc:476–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474const char* DataSource::getRegion(int i) { return regions[i]; }
475
476std::string DataSource::randomState() {
477 assert(states.size() > 0);
478 return states.at(chRandom::uniformInt(0, states.size() - 1));
479}
480
481Nation DataSource::randomNation() {
482 assert(nations.size() > 0);

Callers

nothing calls this directly

Calls 4

assertFunction · 0.85
uniformIntFunction · 0.85
atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected