
30 Oct
2011
30 Oct
'11
12:03 a.m.
Hi, Recently, I've encountered a problem with the generate_uniform_real function (the is_integral version) in boost/random/uniform_real_distribution.hpp. A bug in my code meant that I was trying to generate a uniform random number where the min and max bounds were exactly equal. However, this meant that when on entering the function stated earlier, an infinite loop is never exited from! Is this a bug in boost::random, or have I missed something? Thanks Peter