Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
File Members
ivorium_systems
RandomSystem
RandomGenerator.cpp
Go to the documentation of this file.
1
#include "
RandomGenerator.hpp
"
2
3
namespace
iv
4
{
5
6
Instance
*
RandomGenerator::instance
()
const
7
{
8
return
this->inst;
9
}
10
11
RandomGenerator::result_type
RandomGenerator::operator()
()
12
{
13
return
this->engine();
14
}
15
16
void
RandomGenerator::reset
()
17
{
18
this->engine.seed( this->identity_seed );
19
this->engine.discard( 5 );
20
}
21
22
}