...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Manually provide a one-time seed to initialize the PRNG.
Defined in header <boost/beast/websocket/stream.hpp>
void seed_prng( std::seed_seq& ss);
This function invokes the specified seed sequence to produce a seed suitable
for use with the pseudo-random number generator used to create masks and
perform WebSocket protocol handshakes. If a seed is not manually provided,
the implementation will perform a one-time seed generation using std::random_device
.
This function may be used when the application runs in an environment where
the random device is unreliable or does not provide sufficient entropy.
This function may not be called after any websocket stream
objects have been constructed.
Name |
Description |
---|---|
|
A reference to a |