MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / random_id

Function random_id

dds/InfoRepo/FederatorConfig.cpp:112–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112int random_id()
113{
114 ACE_UINT64 msec;
115 ACE_OS::gettimeofday().msec(msec);
116 ACE_OS::srand((unsigned int)msec);
117 const int r = ACE_OS::rand();
118 return r;
119}
120
121void hash_endpoint(::CORBA::Long& hash, const char* const endpoint, const size_t len)
122{

Callers 1

hash_endpointsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected