From d440ff7c37a480332f121ea8fefd880a4b4e8427 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sun, 27 Mar 2022 21:47:47 -0400 Subject: [PATCH] Try and ducktape boost api change for seeder idk what im doing --- common/kiid.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/kiid.cpp b/common/kiid.cpp index 30267f8536..faad537e60 100644 --- a/common/kiid.cpp +++ b/common/kiid.cpp @@ -42,7 +42,11 @@ static std::mutex rng_mutex; // Static rng and generators are used because the overhead of constant seeding is expensive // We break out the rng separately from the generator because we want to control seeding in cases like unit tests +#if BOOST_VERSION >= 106700 static boost::uuids::detail::random_provider seeder; // required to ensure the rng has a random initial seed +#else +static boost::uuids::detail::seed_rng seeder; // required to ensure the rng has a random initial seed +#endif static boost::mt19937 rng( seeder ); static boost::uuids::basic_random_generator randomGenerator( rng );