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_;
static QidGenerator & getInstance()
Returns the singleton instance of the QidGenerator.
QidGenerator()
Default constructor.
uint16_t generateQid()
Generate a Qid.
void seed()
Seeds the QidGenerator (based on the current time)
Defines the logger used by the top-level component of kea-dhcp-ddns.
std::vector< uint8_t > random(size_t len)
Generate random value.
This class generates Qids for outgoing queries.