Provide random-device option for --rng-seed and make it default
This commit is contained in:
parent
200a487cf2
commit
ed1f343a41
7 changed files with 24 additions and 17 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <catch2/interfaces/catch_interfaces_config.hpp>
|
||||
#include <catch2/internal/catch_unique_ptr.hpp>
|
||||
#include <catch2/internal/catch_optional.hpp>
|
||||
#include <catch2/internal/catch_random_seed_generation.hpp>
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
@ -34,7 +35,7 @@ namespace Catch {
|
|||
bool libIdentify = false;
|
||||
|
||||
int abortAfter = -1;
|
||||
Optional<unsigned int> rngSeed;
|
||||
uint32_t rngSeed = generateRandomSeed(GenerateFrom::Default);
|
||||
|
||||
bool benchmarkNoAnalysis = false;
|
||||
unsigned int benchmarkSamples = 100;
|
||||
|
@ -97,7 +98,7 @@ namespace Catch {
|
|||
ShowDurations showDurations() const override;
|
||||
double minDuration() const override;
|
||||
TestRunOrder runOrder() const override;
|
||||
unsigned int rngSeed() const override;
|
||||
uint32_t rngSeed() const override;
|
||||
UseColour useColour() const override;
|
||||
bool shouldDebugBreak() const override;
|
||||
int abortAfter() const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue