Skip to content

Commit 13f5e4f

Browse files
authored
Update StatsdClient.hpp
1 parent b1cc5a3 commit 13f5e4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/cpp-statsd-client/StatsdClient.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +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 || (!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)(detail::rng())))) {
274274
return;
275275
}
276276

0 commit comments

Comments
 (0)