void _stdcall getRandom() { srand(GetTickCount()); newSerial = (rand() << 16) | rand(); }