3#include <xrpl/basics/random.h>
4#include <xrpl/beast/net/IPAddressV4.h>
5#include <xrpl/beast/net/IPAddressV6.h>
6#include <xrpl/beast/net/IPEndpoint.h>
16 auto dv4 = []() -> AddressV4::bytes_type {
23 auto dv6 = []() -> AddressV6::bytes_type {
A version-independent IP address and port combination.
boost::asio::ip::address Address
boost::asio::ip::address_v6 AddressV6
Endpoint randomEP(bool v4=true)
boost::asio::ip::address_v4 AddressV4
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Integral randInt(Engine &engine, Integral min, Integral max)
Return a uniformly distributed random integer.