--- linear_congruential.hpp.orig 2008-07-21 16:13:54.000000000 +0800 +++ linear_congruential.hpp 2009-01-20 12:42:50.000000000 +0800 @@ -65,7 +65,9 @@ } template - linear_congruential(It& first, It last) { seed(first, last); } + linear_congruential(It& first, It last) + : _modulus(modulus) + { seed(first, last); } // compiler-generated copy constructor and assignment operator are fine void seed(IntType x0 = 1)