mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-07 05:58:45 +01:00
Problem: old C-style casts used
Solution: replace by static_cast/reinterpret_cast
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user