replace rand() -> MT19937 random number generator

sometimes rand() makes problem so replace it to MT19937 in C++11 <random>.
This commit is contained in:
SASANO Takayoshi 2020-07-02 06:40:26 +09:00
parent 0892aaaaae
commit dfaedb450b
4 changed files with 22 additions and 11 deletions

View file

@ -27,6 +27,7 @@
#include <string>
#include <cstdint>
#include <random>
class CDMRNetwork
{
@ -106,6 +107,7 @@ private:
std::string m_url;
bool m_beacon;
std::mt19937 m_random;
bool writeLogin();
bool writeAuthorisation();