mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-21 06:13:49 +00:00
replace rand() -> MT19937 random number generator
sometimes rand() makes problem so replace it to MT19937 in C++11 <random>.
This commit is contained in:
parent
0892aaaaae
commit
dfaedb450b
4 changed files with 22 additions and 11 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue