id summary reporter owner description type status milestone component version severity resolution keywords cc 2787 boost::random::detail::uniform_int_float constructor rick68@… Steven Watanabe "Hi, In line32: uniform_int_float(base_type rng, IntType min_arg = 0, IntType max_arg = 0xffffffff)[[BR]] line33: : _rng(rng), _min(min_arg), _max(max_arg)[[BR]] line34: {[[BR]] line35: init();[[BR]] line36: }[[BR]] line68: void init()[[BR]] line69: {[[BR]] line70: _range = static_cast(_max-_min)+1;[[BR]] line71: }[[BR]] If IntType is ""unsigned long"" and ""min_arg = 0"", ""max_arg = 0xffffffff""; after call constructor, _range will be zero. Becouse ""0 + 0xffffffff + 1"" is 0, so when we call operator() anytime, it always return 0. Is it normal?" Bugs closed Boost 1.39.0 random Boost 1.38.0 Problem invalid