Avoid boost::uuids::entropy_error on some systems

This commit is contained in:
Teo Mrnjavac
2018-11-01 15:50:26 +01:00
committed by Dennis Klein
parent bd899a2806
commit 227a302903
3 changed files with 8 additions and 4 deletions

View File

@@ -8,6 +8,10 @@
#include <fairmq/tools/Unique.h>
// We have to force boost::uuids to rely on /dev/*random instead of getrandom(2) or getentropy(3)
// otherwise on some systems we'd get boost::uuids::entropy_error
#define BOOST_UUID_RANDOM_PROVIDER_FORCE_POSIX
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/uuid_io.hpp>