--- uniform_01.hpp.orig 2008-11-27 02:10:56.000000000 +0800 +++ uniform_01.hpp 2009-01-26 16:56:46.000000000 +0800 @@ -39,7 +39,7 @@ BOOST_STATIC_ASSERT(!std::numeric_limits::is_integer); #endif - explicit uniform_01(base_type rng) + explicit uniform_01(const base_type& rng) : _rng(rng), _factor(result_type(1) / (result_type((_rng.max)()-(_rng.min)()) +