MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / mt19937_seed_to_state

Function mt19937_seed_to_state

common/train.cpp:308–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308std::string mt19937_seed_to_state(unsigned seed) {
309 std::mt19937 rng(seed);
310 return mt19937_get_state(rng);
311}
312
313std::string shuffle_samples(
314 const std::string & rng_state,

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 1

mt19937_get_stateFunction · 0.85

Tested by

no test coverage detected