From 29fdad26228ac0e1558920c1042c2e085cdaaec5 Mon Sep 17 00:00:00 2001 From: cignoni Date: Mon, 27 Feb 2012 06:58:17 +0000 Subject: [PATCH] Added constructor with seed to the Mersenne rnd generator --- vcg/math/random_generator.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vcg/math/random_generator.h b/vcg/math/random_generator.h index 46398ae0..ac2f0674 100644 --- a/vcg/math/random_generator.h +++ b/vcg/math/random_generator.h @@ -199,6 +199,11 @@ public: initialize(5489u); } + MarsenneTwisterRNG(unsigned int seed) + { + initialize(seed); + } + virtual ~MarsenneTwisterRNG() {}