802. knuth_b returns wrong value

Section: 29.6.5 [rand.predef] Status: NAD Submitter: P.J. Plauger Opened: 2008-02-20 Last modified: 2016-02-10

Priority: Not Prioritized

View all other issues in [rand.predef].

View all issues with NAD status.

Discussion:

The 10,000th value returned by knuth_b is supposed to be 1112339016. We get 2126698284.

Proposed resolution:

Change 29.6.5 [rand.predef]/p8:

typedef shuffle_order_engine<minstd_rand0, 256> 
        knuth_b; 

Required behavior: The 10000th consecutive invocation of a default-constructed object of type knuth_b shall produce the value 1112339016 2126698284.

[ Bellevue: Submitter withdraws defect. "We got the wrong value for entirely the right reasons". NAD. ]