From 13e506068893ee1789e286564e5e0dd8411b04a8 Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 27 Nov 2008 21:04:17 +0000 Subject: [PATCH] Re-added the original constructor with the seed. Very useful for using custom static generators. --- vcg/math/random_generator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcg/math/random_generator.h b/vcg/math/random_generator.h index 5c8d5b6e..b6d80c07 100644 --- a/vcg/math/random_generator.h +++ b/vcg/math/random_generator.h @@ -80,9 +80,9 @@ private: public: // ctor - SubtractiveRingRNG() + SubtractiveRingRNG(int default_seed=161803398u) { - initialize(161803398u); + initialize(default_seed); }