1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #ifndef BOOST_BEAST_WEBSOCKET_DETAIL_PRNG_HPP
- #define BOOST_BEAST_WEBSOCKET_DETAIL_PRNG_HPP
- #include <boost/beast/core/detail/config.hpp>
- #include <boost/config.hpp>
- #include <cstdint>
- #include <random>
- namespace boost {
- namespace beast {
- namespace websocket {
- namespace detail {
- using generator = std::uint32_t(*)();
- BOOST_BEAST_DECL
- std::uint32_t const*
- prng_seed(std::seed_seq* ss = nullptr);
- BOOST_BEAST_DECL
- generator
- make_prng(bool secure);
- }
- }
- }
- }
- #ifdef BOOST_BEAST_HEADER_ONLY
- #include <boost/beast/websocket/detail/prng.ipp>
- #endif
- #endif
|