Boost C++ Libraries: Ticket #242: Silent random_number_generator failure. https://svn.boost.org/trac10/ticket/242 <pre class="wiki">The test program attached to this message fails silently when attempting to execute line 54. (The test does not return, but no exceptions or errors are thrown, either.) The culprit is in &lt;boost/random/random_number_generator.hpp&gt;, line 52: the variate_generator's first template parameter is base_type. Changing it to base_type&amp; will squash the bug. Cromwell Enage </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/242 Trac 1.4.3 expaler Mon, 08 Mar 2004 05:00:04 GMT <link>https://svn.boost.org/trac10/ticket/242#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/242#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=901287 Attached to this comment is a refinement of &lt;boost/random/random_number_generator.hpp&gt; that requires only uniform_int instead of variate_generator; furthermore, in member operator() with parameter n, the uniform_int object is only recreated if max() != n - 1. Cromwell Enage </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>jmaurer</dc:creator> <pubDate>Tue, 09 Nov 2004 21:07:09 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/242#comment:2 https://svn.boost.org/trac10/ticket/242#comment:2 <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 Thanks for the bug report. I've added the reference to the instantiation of variate_generator. However, I won't use your wholesale replacement, because it looks like it's going to fail when the underlying generator returns "double" values (between 0 and 1, for example). One of the features of the variate_generator&lt;&gt; is that it converts appropriately. Jens Maurer </pre> Ticket