I try to create multiple WebSocket clients to connect to the server, and I've got the same Sec-WebSocket-Key from every client, so I found the source code, and I think it may need to execute Random::seed() first, right ??
std::string WebSocket::createKey()
{
Poco::Random rnd;
rnd.seed(); // <-- here ?
std::ostringstream ostr;
Poco::Base64Encoder base64(ostr);
Poco::BinaryWriter writer(base64);
writer << rnd.next() << rnd.next() << rnd.next() << rnd.next();
base64.close();
return ostr.str();
}