Mentions légales du service

Skip to content
Snippets Groups Projects
Commit b797fb76 authored by MONSEIGNE Thibaut's avatar MONSEIGNE Thibaut
Browse files

Fix : Id Generator

parent 3c5a73bd
No related branches found
No related tags found
No related merge requests found
......@@ -10,12 +10,13 @@ int main(int /*argc*/, char** /*argv*/)
std::random_device rd;
std::default_random_engine rng(rd());
std::uniform_int_distribution<size_t> uni(0, std::numeric_limits<size_t>::max() - 1);
std::stringstream ss;
ss.fill('0');
for (int i = 0; i < 16; ++i)
{
const size_t v1 = uni(rng), v2 = uni(rng);
const uint32_t v1 = uni(rng), v2 = uni(rng);
std::stringstream ss;
ss.fill('0');
ss << "(0x" << std::setw(8) << std::hex << v1 << ", 0x" << std::setw(8) << std::hex << v2 << ")";
std::cout << "#define OV_ClassId_\t\t\tOpenViBE::CIdentifier" << ss.str() << std::endl;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment