Changes between Initial Version and Version 1 of Ticket #7951


Ignore:
Timestamp:
Jan 30, 2013, 3:12:07 AM (10 years ago)
Author:
Marshall Clow
Comment:

Fixed the formatting in the description.

Also, I verified the same behavior occurs with clang/libc++

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7951 – Description

    initial v1  
    11After fixing a bug in VC11's <random> (see [1]), I compared VC's fixed output to Boost 1.52.0's output and I believe I found a bug in Boost. Here's a self-contained test case:
    2 
     2{{{
    33C:\Temp>type meow.cpp
    44#include <ios>
     
    8686run_10k(      mt19937(0)): 1543171712
    8787run_10k(ranlux24_base(0)): 14007167
     88}}}
    8889
    8990Here's why I believe that ranlux24_base(0) should be equal to ranlux24_base(). ranlux24_base is a subtract_with_carry_engine. 26.5.3.3 [rand.eng.sub]/7 says: