Title
knuth_b returns wrong value
Status
nad
Section
[rand.predef]
Submitter
P.J. Plauger

Created on 2008-02-20.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Change [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.

Date: 2008-02-20.00:00:00

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

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg3827
2008-02-20 00:00:00admincreate