28 #ifndef WEBSOCKETPP_RANDOM_RANDOM_DEVICE_HPP 29 #define WEBSOCKETPP_RANDOM_RANDOM_DEVICE_HPP 31 #include <websocketpp/common/random.hpp> 52 template <
typename int_type,
typename concurrency>
55 typedef typename concurrency::scoped_lock_type scoped_lock_type;
56 typedef typename concurrency::mutex_type mutex_type;
64 scoped_lock_type guard(m_lock);
70 lib::random_device m_rng;
71 lib::uniform_int_distribution<int_type> m_dis;
int_generator()
constructor
Random number generation policies.
RNG policy based on std::random_device or boost::random_device.
int_type operator()()
advances the engine's state and returns the generated value
void handle_accept(connection_ptr con, lib::error_code const &ec)
Handler callback for start_accept.
Thread safe non-deterministic random integer generator.