12#include <boost/scoped_ptr.hpp>
28 return (rng->random(len));
33 std::vector<uint8_t> rnd =
random(
sizeof(uint16_t));
34 memmove(&val, &rnd[0],
sizeof(uint16_t));
static CryptoLink & getCryptoLink()
Returns a reference to the singleton instance.
RNG()
Constructor from a Random Number Generator.
virtual ~RNG()
Destructor.
boost::shared_ptr< RNG > RNGPtr
Type representing the pointer to the RNG.
std::vector< uint8_t > random(size_t len)
Generate random value.
uint16_t generateQid()
Generate a Qid.
Defines the logger used by the top-level component of kea-lfc.