mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-22 19:33:29 +01:00
Don't reseed std::srand when resetting rng state
We no longer use `std::rand` anywhere, so there is no point, and it might even interfere with our users use of `std::(s)rand`.
This commit is contained in:
parent
5d7883b551
commit
6044f021cf
@ -599,7 +599,6 @@ namespace Catch {
|
||||
|
||||
void seedRng(IConfig const& config) {
|
||||
if (config.rngSeed() != 0) {
|
||||
std::srand(config.rngSeed());
|
||||
rng().seed(config.rngSeed());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user