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

Function seedRng

unittests/catch.hpp:8219–8222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8217namespace Catch {
8218
8219 void seedRng( IConfig const& config ) {
8220 if( config.rngSeed() != 0 )
8221 std::srand( config.rngSeed() );
8222 }
8223 unsigned int rngSeed() {
8224 return getCurrentContext().getConfig()->rngSeed();
8225 }

Callers 3

runCurrentTestMethod · 0.85
runInternalMethod · 0.85
sortTestsFunction · 0.85

Calls 1

rngSeedMethod · 0.80

Tested by

no test coverage detected