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;