mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-21 15:51:43 +02:00
#2993: The Sec-WebSocket-Key of WebSocket is always the same one
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user