#include "components/optimization_guide/core/noisy_metrics_recorder.h"
#include <cmath>
#include "base/check_op.h"
#include "base/logging.h"
#include "base/rand_util.h"
NoisyMetricsRecorder::NoisyMetricsRecorder() = default;
NoisyMetricsRecorder::~NoisyMetricsRecorder() = default;
uint32_t NoisyMetricsRecorder::GetNoisyMetric(float flip_probability,
uint32_t original_metric,
uint8_t count_bits) { … }
float NoisyMetricsRecorder::GetRandBetween0And1() const { … }
int NoisyMetricsRecorder::GetRandEither0Or1() const { … }