feat: set rnd seed on start
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user