MCPcopy Create free account
hub / github.com/UbiquitousLearning/mllm / getRandomState

Method getRandomState

mllm/engine/Context.cpp:127–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125uint64_t Context::getRandomSeed() { return random_seed_; }
126
127uint64_t Context::getRandomState() {
128 auto ret = random_state_;
129 std::mt19937 gen(random_state_);
130 random_state_ = gen();
131 return ret;
132}
133
134uint64_t Context::curTime() {
135 auto now = std::chrono::high_resolution_clock::now();

Callers 2

getRandomStateFunction · 0.80
randomMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected