20#include <xrpl/basics/random.h>
21#include <xrpl/beast/net/IPEndpoint.h>
30 auto dv4 = []() -> AddressV4::bytes_type {
35 static_cast<std::uint8_t>(rand_int<int>(1, UINT8_MAX))}};
37 auto dv6 = []() -> AddressV6::bytes_type {
54 static_cast<std::uint8_t>(rand_int<int>(1, UINT8_MAX))}};
58 rand_int<std::uint16_t>(1, UINT16_MAX)};
A version-independent IP address and port combination.
boost::asio::ip::address_v6 AddressV6
Endpoint randomEP(bool v4=true)
boost::asio::ip::address_v4 AddressV4
boost::asio::ip::address Address
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.