HoverRace  2.0
Public Member Functions | Static Public Member Functions | Private Types | List of all members
HoverRace::Util::RandSource Class Reference

#include <Random.h>

+ Inheritance diagram for HoverRace::Util::RandSource:

Public Member Functions

 RandSource ()
 Constructor. More...
 

Static Public Member Functions

static RandSourceForThread ()
 Retrieve the per-thread random data source. More...
 

Private Types

using SUPER = std::mt19937
 

Member Typedef Documentation

using HoverRace::Util::RandSource::SUPER = std::mt19937
private

Constructor & Destructor Documentation

HoverRace::Util::RandSource::RandSource ( )

Constructor.

Ensures that the PRNG is seeded with a random seed.

Member Function Documentation

RandSource & HoverRace::Util::RandSource::ForThread ( )
static

Retrieve the per-thread random data source.

If this is the first time this is called for a given thread, a new random data source will be created and seeded.

Returns
The random source.

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