Problem: does not build on Windows with libsodium

Solution: fixed wrong condition around randombytes_close ().
This commit is contained in:
Pieter Hintjens 2016-03-15 06:26:34 +01:00
parent 98834596f1
commit bbe4f3ede4

View File

@ -111,7 +111,7 @@ zmq::ctx_t::~ctx_t ()
// If we've done any Curve encryption, we may have a file handle
// to /dev/urandom open that needs to be cleaned up.
#ifdef HAVE_LIBSODIUM
#if defined (ZMQ_USE_TWEETNACL)
randombytes_close();
#endif