More entropy for RNG in simple WSPR Tx scheduler

Better to come.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7691 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2017-05-18 21:14:33 +00:00
parent 9e1a46f55d
commit 0eaa1222f8

View File

@ -214,7 +214,8 @@ public:
, parent_widget_ {parent_widget}
, last_was_tx_ {false}
, carry_ {false}
, gen_ {rd_ ()}
, seed_ {{rand (), rand (), rand (), rand (), rand (), rand (), rand (), rand ()}}
, gen_ {seed_}
, dist_ {1, 100}
{
auto num_bands = configuration_->bands ()->rowCount ();
@ -242,7 +243,7 @@ public:
QPointer<Dialog> dialog_;
bool last_was_tx_;
bool carry_;
std::random_device rd_;
std::seed_seq seed_;
std::mt19937 gen_;
std::uniform_int_distribution<int> dist_;
};