What can be the best algorithm to generate a unique id in C++? The length ID should be a 32 bit unsigned integer.
DWORD uid = ::GetTickCount(); ::Sleep(100);