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

Function seedRng

tests/catch.hpp:9703–9708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9701 }
9702
9703 void seedRng( IConfig const& config ) {
9704 if( config.rngSeed() != 0 ) {
9705 std::srand( config.rngSeed() );
9706 rng().seed( config.rngSeed() );
9707 }
9708 }
9709
9710 unsigned int rngSeed() {
9711 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