Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
308
std::string mt19937_seed_to_state(unsigned seed) {
309
std::mt19937 rng(seed);
310
return mt19937_get_state(rng);
311
}
312
313
std::string shuffle_samples(
314
const std::string & rng_state,
Callers
2
main
Function · 0.85
main
Function · 0.85
Calls
1
mt19937_get_state
Function · 0.85
Tested by
no test coverage detected