about summary refs log tree commit diff
path: root/src/engine/client/client.cpp
diff options
context:
space:
mode:
authoreeeee <eeeee@qwe123.info>2018-08-18 17:33:58 -0700
committerLearath <learath2@gmail.com>2018-08-20 15:33:34 +0300
commit2cd0223a8df54ae1c8715915a331dfc56a5a29d3 (patch)
treea5c3789c4aa2c93255d824b5eb343172d3642eac /src/engine/client/client.cpp
parent3f3abebebf20e8901376b929e2afcc6bdb404a3b (diff)
downloadzcatch-2cd0223a8df54ae1c8715915a331dfc56a5a29d3.tar.gz
zcatch-2cd0223a8df54ae1c8715915a331dfc56a5a29d3.zip
Port antispoof
Diffstat (limited to 'src/engine/client/client.cpp')
-rw-r--r--src/engine/client/client.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp
index b58b1b5a..46907946 100644
--- a/src/engine/client/client.cpp
+++ b/src/engine/client/client.cpp
@@ -2292,6 +2292,12 @@ int main(int argc, const char **argv) // ignore_convention
 	}
 #endif
 
+	if(secure_random_init() != 0)
+	{
+		dbg_msg("secure", "could not initialize secure RNG");
+		return -1;
+	}
+
 	CClient *pClient = CreateClient();
 	IKernel *pKernel = IKernel::Create();
 	pKernel->RegisterInterface(pClient);