MCPcopy Create free account
hub / github.com/apache/trafficserver / seedRng

Function seedRng

lib/catch2/catch.hpp:13154–13159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

runCurrentTestMethod · 0.85
runInternalMethod · 0.85
sortTestsFunction · 0.85

Calls 2

rngSeedMethod · 0.80
seedMethod · 0.45

Tested by

no test coverage detected