@@ -162,7 +162,7 @@ inline std::string sanitizePrefix(std::string prefix) {
162162 return prefix;
163163}
164164
165- std::mt19937& rng (unsigned int seed = 0 ){
165+ std::mt19937& rng (unsigned int seed = 0 ) {
166166 static thread_local std::mt19937 twister (seed);
167167 return twister;
168168}
@@ -179,7 +179,7 @@ inline StatsdClient::StatsdClient(const std::string& host,
179179 const std::string& prefix,
180180 const uint64_t batchsize,
181181 const uint64_t sendInterval,
182- const int gaugePrecision
182+ const int gaugePrecision,
183183 const unsigned int seed) noexcept
184184 : m_prefix(detail::sanitizePrefix(prefix)),
185185 m_sender(new UDPSender{host, port, batchsize, sendInterval}),
@@ -270,8 +270,7 @@ inline void StatsdClient::send(const std::string& key,
270270 constexpr float epsilon{0 .0001f };
271271 const bool isFrequencyOne = std::fabs (frequency - 1 .0f ) < epsilon;
272272 const bool isFrequencyZero = std::fabs (frequency) < epsilon;
273- if (isFrequencyZero ||
274- (!isFrequencyOne && (frequency < std::uniform_real_distribution<float >(0 .f , 1 .f )(rng ())))) {
273+ if (isFrequencyZero || (!isFrequencyOne && (frequency < std::uniform_real_distribution<float >(0 .f , 1 .f )(rng ())))) {
275274 return ;
276275 }
277276
0 commit comments