Boost C++ Libraries: Ticket #6189: uniform_int produce invalid output when generating int64_t values https://svn.boost.org/trac10/ticket/6189 <p> uniform_int could produce 4294967295 when requested interval is -50,50. The problem appears when interval type is int64_t. </p> <p> I've attached minimal example to reproduce the issue. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6189 Trac 1.4.3 spolitov@… Thu, 01 Dec 2011 07:07:53 GMT attachment set https://svn.boost.org/trac10/ticket/6189 https://svn.boost.org/trac10/ticket/6189 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">1.cpp</span> </li> </ul> <p> minimal example to reproduce the issue </p> Ticket Steven Watanabe Thu, 01 Dec 2011 18:30:55 GMT owner, status changed https://svn.boost.org/trac10/ticket/6189#comment:1 https://svn.boost.org/trac10/ticket/6189#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">No-Maintainer</span> to <span class="trac-author-anonymous">anonymous</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Bother. I thought I had fixed all the bugs... </p> Ticket anonymous Thu, 01 Dec 2011 18:31:21 GMT owner, status changed https://svn.boost.org/trac10/ticket/6189#comment:2 https://svn.boost.org/trac10/ticket/6189#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author-anonymous">anonymous</span> to <span class="trac-author">Steven Watanabe</span> </li> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">new</span> </li> </ul> Ticket Steven Watanabe Thu, 01 Dec 2011 18:33:16 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6189#comment:3 https://svn.boost.org/trac10/ticket/6189#comment:3 <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/75764" title="Fix off-by-one error. Fixes #6189.">[75764]</a>) Fix off-by-one error. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6189" title="#6189: Bugs: uniform_int produce invalid output when generating int64_t values (closed: fixed)">#6189</a>. </p> Ticket