File indexing completed on 2025-01-18 09:29:33
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_BEAST_WEBSOCKET_DETAIL_PRNG_HPP
0011 #define BOOST_BEAST_WEBSOCKET_DETAIL_PRNG_HPP
0012
0013 #include <boost/beast/core/detail/config.hpp>
0014 #include <boost/config.hpp>
0015 #include <cstdint>
0016 #include <random>
0017
0018 namespace boost {
0019 namespace beast {
0020 namespace websocket {
0021 namespace detail {
0022
0023 using generator = std::uint32_t(*)();
0024
0025
0026
0027
0028
0029
0030 BOOST_BEAST_DECL
0031 std::uint32_t const*
0032 prng_seed(std::seed_seq* ss = nullptr);
0033
0034
0035
0036
0037 BOOST_BEAST_DECL
0038 generator
0039 make_prng(bool secure);
0040
0041 }
0042 }
0043 }
0044 }
0045
0046 #ifdef BOOST_BEAST_HEADER_ONLY
0047 #include <boost/beast/websocket/detail/prng.ipp>
0048 #endif
0049
0050 #endif