| 13150 | } |
| 13151 | |
| 13152 | void seedRng(IConfig const& config) { |
| 13153 | if (config.rngSeed() != 0) { |
| 13154 | std::srand(config.rngSeed()); |
| 13155 | rng().seed(config.rngSeed()); |
| 13156 | } |
| 13157 | } |
| 13158 | |
| 13159 | unsigned int rngSeed() { |
| 13160 | return getCurrentContext().getConfig()->rngSeed(); |
no test coverage detected