Boost C++ Libraries: Ticket #134: uniform_int should receive specific type https://svn.boost.org/trac10/ticket/134 <pre class="wiki">In random_number_generator, a call is made to uniform_int&lt;base_type&gt;(_rng, 0, n-1)(). Inside the uniform_int constructor, a test is performed for assert(min &lt; max). If the IntType specified for random_number_generator is unsigned long (one of the ones from mersenne_twister, for example), and a full range random number is being requested, then this assert will always fail, since the unsigned long max() will (normally) turn into int(-1). The fix is to ensure that the IntType specified in the instantiation of random_number_generator is propagated to uniform_int. phil &lt;boost@derived-software.ltd.uk&gt; </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/134 Trac 1.4.3 jmaurer Tue, 09 Nov 2004 21:20:00 GMT status changed https://svn.boost.org/trac10/ticket/134#comment:1 https://svn.boost.org/trac10/ticket/134#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=53943 This got already fixed by my July 2003 change to that file. Jens Maurer </pre> Ticket