MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / seedRng

Function seedRng

extern/Catch2/catch.hpp:13152–13157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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();

Callers 3

runCurrentTestMethod · 0.85
runInternalMethod · 0.85
sortTestsFunction · 0.85

Calls 2

rngSeedMethod · 0.80
seedMethod · 0.80

Tested by

no test coverage detected