CatapultServer  v0.5.0.1 (Elephant)
catapult::tools::RandomGenerator Class Reference

Random generator. More...

Public Member Functions

 RandomGenerator ()
 Creates random generator using random system seed. More...
 
 RandomGenerator (uint64_t seed)
 Creates random generator using seed. More...
 
uint64_t operator() ()
 Generates next random number. More...
 

Private Attributes

std::mt19937_64 m_gen
 

Detailed Description

Random generator.

Constructor & Destructor Documentation

◆ RandomGenerator() [1/2]

catapult::tools::RandomGenerator::RandomGenerator ( )

Creates random generator using random system seed.

◆ RandomGenerator() [2/2]

catapult::tools::RandomGenerator::RandomGenerator ( uint64_t  seed)
explicit

Creates random generator using seed.

Member Function Documentation

◆ operator()()

uint64_t catapult::tools::RandomGenerator::operator() ( )

Generates next random number.

Member Data Documentation

◆ m_gen

std::mt19937_64 catapult::tools::RandomGenerator::m_gen
private

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