feat: set rnd seed on start

This commit is contained in:
2026-04-11 13:38:51 -03:00
parent 27b8a0e497
commit 9799c2babe
+3
View File
@@ -5,6 +5,7 @@
#include <windows.h>
#include <wininet.h>
#include <ctime>
bool setProxyAddress(bool enable, const std::string& proxyAddr)
{
@@ -87,6 +88,8 @@ BOOL WINAPI consoleHandler(DWORD dwType)
int main()
{
srand(static_cast<unsigned int>(time(NULL)));
Log::createConsole();
SetConsoleCtrlHandler(consoleHandler, TRUE);
atexit(cleanup);