Added constructor with seed to the Mersenne rnd generator

This commit is contained in:
Paolo Cignoni 2012-02-27 06:58:17 +00:00
parent 6983d4f6e9
commit 29fdad2622
1 changed files with 5 additions and 0 deletions

View File

@ -199,6 +199,11 @@ public:
initialize(5489u); initialize(5489u);
} }
MarsenneTwisterRNG(unsigned int seed)
{
initialize(seed);
}
virtual ~MarsenneTwisterRNG() virtual ~MarsenneTwisterRNG()
{} {}