[Boost-bugs] [Boost C++ Libraries] #9254: [random] mistake documentation : kreutzer1986 size

Subject: [Boost-bugs] [Boost C++ Libraries] #9254: [random] mistake documentation : kreutzer1986 size
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-10-16 06:51:19


#9254: [random] mistake documentation : kreutzer1986 size
-----------------------------------------------+---------------------------
 Reporter: Akira Takahashi <faithandbrave@…> | Owner: no-maintainer
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: random
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
-----------------------------------------------+---------------------------
 http://www.boost.org/doc/libs/1_54_0/doc/html/boost_random/reference.html#boost_random.reference.generators

 This page says:
 {{{
 generator | approx. memory requirements
 kreutzer1986 | 1368*sizeof(uint32_t)
 }}}

 I checked this requirements.
 {{{
 #include <iostream>
 #include <boost/random/shuffle_order.hpp>

 int main()
 {
     typedef boost::random::kreutzer1986 dist_type;

     std::size_t size = sizeof(dist_type) / sizeof(dist_type::result_type);
     std::cout << size << std::endl; // 99
 }
 }}}

 {{{
 // <boost/random/shuffle_order.hpp>
 typedef shuffle_order_engine<
     linear_congruential_engine<uint32_t, 1366, 150889, 714025>,
     97> kreutzer1986;

 // shuffle_order table size 97 + linear_congruential_engine
 }}}

 If I understand correctly, `kreutzer1986` size shoule be
 `98*sizeof(uint32_t)`.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9254>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC