Kea 2.7.0
isc::perfdhcp::TestControl::RandomGenerator Class Reference

Random numbers generator class. More...

#include <test_control.h>

+ Inheritance diagram for isc::perfdhcp::TestControl::RandomGenerator:

Public Member Functions

 RandomGenerator (uint32_t min, uint32_t max)
 Constructor.
 
virtual uint32_t generate ()
 Generate number in range of [min, max].
 
- Public Member Functions inherited from isc::perfdhcp::TestControl::NumberGenerator
virtual ~NumberGenerator ()
 Destructor.
 

Detailed Description

Random numbers generator class.

The generated numbers are uniformly distributed in the range of [min, max].

Definition at line 187 of file test_control.h.

Constructor & Destructor Documentation

◆ RandomGenerator()

isc::perfdhcp::TestControl::RandomGenerator::RandomGenerator ( uint32_t min,
uint32_t max )
inline

Constructor.

Parameters
minminimum number generated.
maxmaximum number generated.

Definition at line 193 of file test_control.h.

Member Function Documentation

◆ generate()

virtual uint32_t isc::perfdhcp::TestControl::RandomGenerator::generate ( )
inlinevirtual

Generate number in range of [min, max].

Returns
generated number.

Implements isc::perfdhcp::TestControl::NumberGenerator.

Definition at line 203 of file test_control.h.


The documentation for this class was generated from the following file: