16#include <boost/random/mersenne_twister.hpp>
17#include <boost/random/uniform_int.hpp>
18#include <boost/random/variate_generator.hpp>
68 boost::mt19937 generator_;
71 boost::uniform_int<> dist_;
73 boost::variate_generator<boost::mt19937&, boost::uniform_int<> > vgen_;
This class generates Qids for outgoing queries.
static QidGenerator & getInstance()
Returns the singleton instance of the QidGenerator.
uint16_t generateQid()
Generate a Qid.
QidGenerator()
Default constructor.
void seed()
Seeds the QidGenerator (based on the current time)
std::vector< uint8_t > random(size_t len)
Generate random value.
Defines the logger used by the top-level component of kea-dhcp-ddns.