forked from catchorg/Catch2
Reseed global rng instance unconditionally
This commit is contained in:
@ -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() {
|
||||||
|
Reference in New Issue
Block a user