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,9 +598,7 @@ namespace Catch {
} }
void seedRng(IConfig const& config) { void seedRng(IConfig const& config) {
if (config.rngSeed() != 0) { rng().seed(config.rngSeed());
rng().seed(config.rngSeed());
}
} }
unsigned int rngSeed() { unsigned int rngSeed() {