MCPcopy Create free account
hub / github.com/Vector35/debugger / GenerateRandomPipeName

Method GenerateRandomPipeName

core/adapters/dbgengadapter.cpp:150–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150std::string DbgEngAdapter::GenerateRandomPipeName()
151{
152 const std::string chars = "abcdefghijklmnopqrstuvwxyz1234567890";
153 constexpr size_t length = 16;
154 srand(time(NULL));
155
156 std::string result;
157 result.resize(length);
158 for (size_t i = 0; i < length; i++)
159 result[i] = chars[rand() % chars.length()];
160
161 return result;
162}
163
164bool DbgEngAdapter::LaunchDbgSrv(const std::string& commandLine)
165{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected