somehow this was breaking the seeding of thread-local engines on gcc.
we'll have to investigate this further, but for now i'm reverting this
piece to get messengers working again
Fixes: http://tracker.ceph.com/issues/23778
Signed-off-by: Casey Bodley <cbodley@redhat.com>
#include <mutex>
#include <random>
-#include <optional>
#include <type_traits>
+#include <boost/optional.hpp>
// Basic random number facility, adapted from N3551:
namespace ceph::util {
template <typename EngineT>
EngineT& engine()
{
- thread_local std::optional<EngineT> rng_engine;
+ thread_local boost::optional<EngineT> rng_engine;
if (!rng_engine) {
rng_engine.emplace(EngineT());