diff options
| author | Martin Hořeňovský | 2022-05-17 11:54:12 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-05-17 11:54:19 +0200 |
| commit | 6044f021cf53ac51c307566dd9b5c13054b097d6 (patch) | |
| tree | 3800f6189810bc9b6fd3d3aa9240d2393d9093f2 | |
| parent | 5d7883b551670e28d15697eed4411574aa7e313a (diff) | |
| download | catch3-6044f021cf53ac51c307566dd9b5c13054b097d6.tar.gz | |
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`.
| -rw-r--r-- | src/catch2/internal/catch_run_context.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_run_context.cpp b/src/catch2/internal/catch_run_context.cpp index 7da8f714..de75ab4a 100644 --- a/src/catch2/internal/catch_run_context.cpp +++ b/src/catch2/internal/catch_run_context.cpp @@ -599,7 +599,6 @@ namespace Catch { void seedRng(IConfig const& config) { if (config.rngSeed() != 0) { - std::srand(config.rngSeed()); rng().seed(config.rngSeed()); } } |