Opened 9 years ago
Closed 9 years ago
#9254 closed Bugs (fixed)
[random] mistake documentation : kreutzer1986 size
Reported by: | Owned by: | No-Maintainer | |
---|---|---|---|
Milestone: | To Be Determined | Component: | random |
Version: | Boost 1.54.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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)
.
Note:
See TracTickets
for help on using tickets.
Fixed in https://github.com/boostorg/random/commit/d6f82a4b316426d403320f9227369deda873d0a8.