MCPcopy Create free account
hub / github.com/bytedance/bolt / oneIn

Method oneIn

bolt/exec/tests/HashJoinBridgeTest.cpp:86–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 }
85
86 bool oneIn(uint32_t n) {
87 std::lock_guard<std::mutex> l(mutex_);
88 return folly::Random().oneIn(n, rng_);
89 }
90
91 std::shared_ptr<HashJoinBridge> createJoinBridge() const {
92 return std::make_shared<HashJoinBridge>();

Callers 6

dataFetcherMethod · 0.45
TEST_PFunction · 0.45
TEST_PFunction · 0.45
runMethod · 0.45
TEST_PFunction · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected