MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / createKey

Method createKey

base/poco/Net/src/WebSocket.cpp:236–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234
235
236std::string WebSocket::createKey()
237{
238 Poco::Random rnd;
239 std::ostringstream ostr;
240 Poco::Base64Encoder base64(ostr);
241 Poco::BinaryWriter writer(base64);
242 writer << rnd.next() << rnd.next() << rnd.next() << rnd.next();
243 base64.close();
244 return ostr.str();
245}
246
247
248std::string WebSocket::computeAccept(const std::string& key)

Callers

nothing calls this directly

Calls 3

nextMethod · 0.45
closeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected