mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Avoid boost::uuids::entropy_error on some systems
This commit is contained in:
committed by
Dennis Klein
parent
bd899a2806
commit
227a302903
@@ -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>
|
||||
|
Reference in New Issue
Block a user