QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SeedGenerator Class Reference

Random seed generator. More...

#include <seedgenerator.hpp>

+ Inheritance diagram for SeedGenerator:
+ Collaboration diagram for SeedGenerator:

Public Member Functions

unsigned long get ()
 
- Public Member Functions inherited from Singleton< SeedGenerator >
 Singleton (const Singleton &)=delete
 
 Singleton (Singleton &&)=delete
 
Singletonoperator= (const Singleton &)=delete
 
Singletonoperator= (Singleton &&)=delete
 
 ~Singleton ()=default
 

Private Member Functions

 SeedGenerator ()
 
void initialize ()
 

Private Attributes

MersenneTwisterUniformRng rng_
 

Friends

class Singleton< SeedGenerator >
 

Additional Inherited Members

- Static Public Member Functions inherited from Singleton< SeedGenerator >
static SeedGeneratorinstance ()
 access to the unique instance More...
 
- Protected Member Functions inherited from Singleton< SeedGenerator >
 Singleton ()=default
 

Detailed Description

Random seed generator.

Random number generator used for automatic generation of initialization seeds.

Tests:
correct initialization of the single instance is tested.

Definition at line 38 of file seedgenerator.hpp.

Constructor & Destructor Documentation

◆ SeedGenerator()

SeedGenerator ( )
private

Definition at line 29 of file seedgenerator.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ get()

unsigned long get ( )

Definition at line 59 of file seedgenerator.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initialize()

void initialize ( )
private

Definition at line 33 of file seedgenerator.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ Singleton< SeedGenerator >

friend class Singleton< SeedGenerator >
friend

Definition at line 1 of file seedgenerator.hpp.

Member Data Documentation

◆ rng_

Definition at line 45 of file seedgenerator.hpp.