Boost C++ Libraries: Ticket #6801: mersenne_twister friend function operator== https://svn.boost.org/trac10/ticket/6801 <p> operator== does not return the correct value. </p> <p> I give an example of 2 equivalent mersenne_twister engines for which operator== returns a value of false. </p> <p> The problem is that operator== counts the high w-r bits of the first byte of the generator state. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6801 Trac 1.4.3 James Hirschorn <james.hirschorn@…> Mon, 16 Apr 2012 19:34:21 GMT attachment set https://svn.boost.org/trac10/ticket/6801 https://svn.boost.org/trac10/ticket/6801 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">mersenne_twister_bug.cpp</span> </li> </ul> <p> example source code </p> Ticket Steven Watanabe Tue, 16 Oct 2012 21:33:19 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6801#comment:1 https://svn.boost.org/trac10/ticket/6801#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/81001" title="Make sure that equivalent states of mersenne_twister have identical ...">[81001]</a>) Make sure that equivalent states of mersenne_twister have identical bits. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6801" title="#6801: Bugs: mersenne_twister friend function operator== (closed: fixed)">#6801</a>. </p> Ticket