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

Function rngSeed

unittests/catch.hpp:8223–8225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8221 std::srand( config.rngSeed() );
8222 }
8223 unsigned int rngSeed() {
8224 return getCurrentContext().getConfig()->rngSeed();
8225 }
8226
8227 RandomNumberGenerator::result_type RandomNumberGenerator::operator()( result_type n ) const {
8228 return std::rand() % n;

Callers

nothing calls this directly

Calls 1

rngSeedMethod · 0.80

Tested by

no test coverage detected