Some RunContext clean-up

This commit is contained in:
Phil Nash
2015-11-19 07:35:35 +00:00
parent 2ebe11660c
commit b77b45a390
9 changed files with 61 additions and 57 deletions

View File

@@ -87,7 +87,9 @@ namespace Catch {
std::srand( config.rngSeed() );
}
unsigned int rngSeed() {
return getCurrentContext().getConfig()->rngSeed();
return getCurrentConfig()
? getCurrentConfig()->rngSeed()
: 0;
}
std::ostream& operator << ( std::ostream& os, SourceLineInfo const& info ) {