Problem: old C-style casts used

Solution: replace by static_cast/reinterpret_cast
This commit is contained in:
Simon Giesecke
2018-05-27 06:48:49 -04:00
parent e3c73d9881
commit d767909b50
10 changed files with 32 additions and 26 deletions

View File

@@ -51,7 +51,7 @@ void zmq::seed_random ()
#if defined ZMQ_HAVE_WINDOWS
int pid = static_cast<int> (GetCurrentProcessId ());
#else
int pid = (int) getpid ();
int pid = static_cast<int> (getpid ());
#endif
srand (static_cast<unsigned int> (clock_t::now_us () + pid));
}