MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / run

Method run

example/E04-MapReduce.cpp:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 }
33
34 CStatus run() override {
35 std::mt19937 generator;
36 auto param = CGRAPH_GET_GPARAM_WITH_NO_EMPTY(NumsGParam, PARAM_KEY);
37
38 std::uniform_int_distribution<int> distribution(0, MAX_NUM - 1);
39 for (int i = 0; i < MAP_SIZE * NUMS_PER_MAP; i++) {
40 int num = distribution(generator);
41 param->random_nums_.push_back(num);
42 }
43
44 return CStatus();
45 }
46};
47
48

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected