mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-02 16:26:48 +00:00
updates config to add RNG policy
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -28,6 +28,9 @@
|
||||
#ifndef WEBSOCKETPP_CONFIG_CORE_HPP
|
||||
#define WEBSOCKETPP_CONFIG_CORE_HPP
|
||||
|
||||
// Integers
|
||||
#include <websocketpp/common/stdint.hpp>
|
||||
|
||||
// Concurrency
|
||||
#include <websocketpp/concurrency/basic.hpp>
|
||||
|
||||
@@ -45,6 +48,9 @@
|
||||
// Loggers
|
||||
#include <websocketpp/logger/basic.hpp>
|
||||
|
||||
// RNG
|
||||
#include <websocketpp/random/random_device.hpp>
|
||||
|
||||
// Extensions
|
||||
#include <websocketpp/extensions/permessage_compress/disabled.hpp>
|
||||
|
||||
@@ -73,6 +79,10 @@ struct core {
|
||||
typedef websocketpp::log::basic<concurrency_type,
|
||||
websocketpp::log::alevel> alog_type;
|
||||
|
||||
/// RNG policies
|
||||
typedef websocketpp::random::random_device<uint32_t,concurrency_type>
|
||||
rng_type;
|
||||
|
||||
struct transport_config {
|
||||
typedef core::concurrency_type concurrency_type;
|
||||
typedef core::elog_type elog_type;
|
||||
|
||||
Reference in New Issue
Block a user