mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-05 06:45:45 +02:00
Reseed global rng instance unconditionally
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user