MCPcopy Create free account
hub / github.com/AgoraIO/API-Examples / generateUid

Function generateUid

windows/APIExample/APIExample/stdafx.cpp:424–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424unsigned int generateUid()
425{
426 srand(GetTickCount());
427 unsigned seed1 = std::chrono::system_clock::now().time_since_epoch().count();
428 std::mt19937 g1(seed1); // mt19937 is a standard mersenne_twister_engine
429 return g1() % 1000000;
430}
431
432BOOL PASCAL SaveResourceToFile(LPCTSTR lpResourceType, WORD wResourceID, LPCTSTR lpFilePath)
433{

Calls

no outgoing calls

Tested by

no test coverage detected