mirror of
https://github.com/catchorg/Catch2
synced 2026-02-21 03:32:16 +00:00
Provide random-device option for --rng-seed and make it default
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
#include <catch2/internal/catch_move_and_forward.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
#include <ctime>
|
||||
#include <iomanip>
|
||||
#include <set>
|
||||
|
||||
@@ -171,10 +170,6 @@ namespace Catch {
|
||||
if( m_startupExceptions )
|
||||
return 1;
|
||||
|
||||
if (!m_configData.rngSeed) {
|
||||
m_configData.rngSeed = static_cast<unsigned int>(std::time(nullptr));
|
||||
}
|
||||
|
||||
auto result = m_cli.parse( Clara::Args( argc, argv ) );
|
||||
if( !result ) {
|
||||
config();
|
||||
|
||||
Reference in New Issue
Block a user