Reseed global rng instance unconditionally

This commit is contained in:
Martin Hořeňovský 2022-05-17 12:35:34 +02:00
parent 6044f021cf
commit 9c72b303d9
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -598,10 +598,8 @@ namespace Catch {
}
void seedRng(IConfig const& config) {
if (config.rngSeed() != 0) {
rng().seed(config.rngSeed());
}
}
unsigned int rngSeed() {
return getCurrentContext().getConfig()->rngSeed();