MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / seedRng

Function seedRng

extlibs/catch/include/catch/catch.hpp:11722–11727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11720 }
11721
11722 void seedRng( IConfig const& config ) {
11723 if( config.rngSeed() != 0 ) {
11724 std::srand( config.rngSeed() );
11725 rng().seed( config.rngSeed() );
11726 }
11727 }
11728
11729 unsigned int rngSeed() {
11730 return getCurrentContext().getConfig()->rngSeed();

Callers 3

runCurrentTestMethod · 0.85
runInternalMethod · 0.85
sortTestsFunction · 0.85

Calls 1

rngSeedMethod · 0.80

Tested by

no test coverage detected