Boost C++ Libraries: Ticket #9254: [random] mistake documentation : kreutzer1986 size https://svn.boost.org/trac10/ticket/9254 <p> <a href="http://www.boost.org/doc/libs/1_54_0/doc/html/boost_random/reference.html#boost_random.reference.generators">http://www.boost.org/doc/libs/1_54_0/doc/html/boost_random/reference.html#boost_random.reference.generators</a> </p> <p> This page says: </p> <pre class="wiki">generator | approx. memory requirements kreutzer1986 | 1368*sizeof(uint32_t) </pre><p> I checked this requirements. </p> <pre class="wiki">#include &lt;iostream&gt; #include &lt;boost/random/shuffle_order.hpp&gt; int main() { typedef boost::random::kreutzer1986 dist_type; std::size_t size = sizeof(dist_type) / sizeof(dist_type::result_type); std::cout &lt;&lt; size &lt;&lt; std::endl; // 99 } </pre><pre class="wiki">// &lt;boost/random/shuffle_order.hpp&gt; typedef shuffle_order_engine&lt; linear_congruential_engine&lt;uint32_t, 1366, 150889, 714025&gt;, 97&gt; kreutzer1986; // shuffle_order table size 97 + linear_congruential_engine </pre><p> If I understand correctly, <code>kreutzer1986</code> size shoule be <code>98*sizeof(uint32_t)</code>. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9254 Trac 1.4.3 Steven Watanabe Tue, 11 Mar 2014 00:24:19 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9254#comment:1 https://svn.boost.org/trac10/ticket/9254#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in <a class="ext-link" href="https://github.com/boostorg/random/commit/d6f82a4b316426d403320f9227369deda873d0a8"><span class="icon">​</span>https://github.com/boostorg/random/commit/d6f82a4b316426d403320f9227369deda873d0a8</a>. </p> Ticket