Opened 4 years ago

Closed 4 years ago

#9254 closed Bugs (fixed)

[random] mistake documentation : kreutzer1986 size

Reported by: Akira Takahashi <faithandbrave@…> Owned by: No-Maintainer
Milestone: To Be Determined Component: random
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:


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).

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by Steven Watanabe

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain No-Maintainer.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.