From c8e8f2a24cd339c548e06f75a3cef96454671a85 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Fri, 15 Jul 2011 11:24:33 +0200 Subject: ZMQ_IDENTITY socket option removed This patch simplifies the whole codebase significantly, including dropping depedency on libuuid. Signed-off-by: Martin Sustrik --- src/req.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/req.cpp') diff --git a/src/req.cpp b/src/req.cpp index e0e3321..7831672 100644 --- a/src/req.cpp +++ b/src/req.cpp @@ -21,7 +21,6 @@ #include "req.hpp" #include "err.hpp" #include "msg.hpp" -#include "uuid.hpp" #include "wire.hpp" #include "random.hpp" #include "likely.hpp" @@ -30,12 +29,9 @@ zmq::req_t::req_t (class ctx_t *parent_, uint32_t tid_) : xreq_t (parent_, tid_), receiving_reply (false), message_begins (true), - request_id (0) + request_id (generate_random ()) { options.type = ZMQ_REQ; - - // Start the request ID sequence at an random point. - generate_random (&request_id, sizeof (request_id)); } zmq::req_t::~req_t () -- cgit v1.2.3