mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-06 07:15:40 +02:00
Reseed global rng instance unconditionally
This commit is contained in:
@@ -598,10 +598,8 @@ 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() {
|
||||||
return getCurrentContext().getConfig()->rngSeed();
|
return getCurrentContext().getConfig()->rngSeed();
|
||||||
|
Reference in New Issue
Block a user