#2993: The Sec-WebSocket-Key of WebSocket is always the same one

This commit is contained in:
Günter Obiltschnig 2021-04-11 16:57:39 +02:00
parent 49cd3028f4
commit f46cf3ae8a

View File

@ -236,6 +236,7 @@ WebSocketImpl* WebSocket::completeHandshake(HTTPClientSession& cs, HTTPResponse&
std::string WebSocket::createKey()
{
Poco::Random rnd;
rnd.seed();
std::ostringstream ostr;
Poco::Base64Encoder base64(ostr);
Poco::BinaryWriter writer(base64);