knuth_b
returns wrong valueSection: 29.5.6 [rand.predef] Status: NAD Submitter: P.J. Plauger Opened: 2008-02-20 Last modified: 2016-01-28
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.5.6 [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 value11123390162126698284.
[ Bellevue: Submitter withdraws defect. "We got the wrong value for entirely the right reasons". NAD. ]