summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlawek Figiel <slawek@isc.org>2024-02-20 09:04:35 +0100
committerSlawek Figiel <slawek@isc.org>2024-02-20 09:34:22 +0100
commite767fca44868e034b9c692df1d73346c77b0c7b2 (patch)
tree7aa00b901a1953e7b451d3b71e558fe1f526d9b7 /src
parent[#3207] Add some comments (diff)
downloadkea-e767fca44868e034b9c692df1d73346c77b0c7b2.tar.xz
kea-e767fca44868e034b9c692df1d73346c77b0c7b2.zip
[#3207] Change the member names
Diffstat (limited to 'src')
-rw-r--r--src/bin/perfdhcp/test_control.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/perfdhcp/test_control.h b/src/bin/perfdhcp/test_control.h
index 891e3a7f35..9c0c31859c 100644
--- a/src/bin/perfdhcp/test_control.h
+++ b/src/bin/perfdhcp/test_control.h
@@ -193,27 +193,27 @@ public:
/// \param max maximum number generated.
RandomGenerator(uint32_t min, uint32_t max) :
NumberGenerator(),
- distribution(min, max) {
+ distribution_(min, max) {
// Initialize the randomness source with the current time.
- randomness_generator.seed(time(0));
+ randomness_generator_.seed(time(0));
}
/// \brief Generate number in range of [min, max].
///
/// \return generated number.
virtual uint32_t generate() {
- return distribution(randomness_generator);
+ return distribution_(randomness_generator_);
}
private:
/// \brief The random values will be uniformly distributed in
/// the range provided in the constructor.
- std::uniform_int_distribution<> distribution;
+ std::uniform_int_distribution<> distribution_;
/// \brief It is a high quality general-purpose random
/// generator. It isn't suitable for cryptographic use but is
/// good enough for testing.
- std::mt19937 randomness_generator;
+ std::mt19937 randomness_generator_;
};
/// \brief Length of the Ethernet HW address (MAC) in bytes.