diff --git a/websocketpp/config/asio.hpp b/websocketpp/config/asio.hpp index 166c7d33c0..4af0dcc5f6 100644 --- a/websocketpp/config/asio.hpp +++ b/websocketpp/config/asio.hpp @@ -51,6 +51,8 @@ struct asio_tls : public core { typedef core::alog_type alog_type; typedef core::alog_type elog_type; + + typedef core::rng_type rng_type; struct transport_config { typedef asio_tls::concurrency_type concurrency_type; diff --git a/websocketpp/config/asio_no_tls.hpp b/websocketpp/config/asio_no_tls.hpp index 47627e89b2..36bf595de4 100644 --- a/websocketpp/config/asio_no_tls.hpp +++ b/websocketpp/config/asio_no_tls.hpp @@ -47,6 +47,8 @@ struct asio : public core { typedef core::alog_type alog_type; typedef core::alog_type elog_type; + typedef core::rng_type rng_type; + struct transport_config { typedef asio::concurrency_type concurrency_type; typedef asio::alog_type alog_type; diff --git a/websocketpp/config/core.hpp b/websocketpp/config/core.hpp index 63f820c397..bcbc1d2440 100644 --- a/websocketpp/config/core.hpp +++ b/websocketpp/config/core.hpp @@ -28,6 +28,9 @@ #ifndef WEBSOCKETPP_CONFIG_CORE_HPP #define WEBSOCKETPP_CONFIG_CORE_HPP +// Integers +#include + // Concurrency #include @@ -45,6 +48,9 @@ // Loggers #include +// RNG +#include + // Extensions #include @@ -73,6 +79,10 @@ struct core { typedef websocketpp::log::basic alog_type; + /// RNG policies + typedef websocketpp::random::random_device + rng_type; + struct transport_config { typedef core::concurrency_type concurrency_type; typedef core::elog_type elog_type;