mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Reseed global rng instance unconditionally
This commit is contained in:
parent
6044f021cf
commit
9c72b303d9
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user