[Boost-bugs] [Boost C++ Libraries] #6189: uniform_int produce invalid output when generating int64_t values

Subject: [Boost-bugs] [Boost C++ Libraries] #6189: uniform_int produce invalid output when generating int64_t values
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-01 07:07:05


#6189: uniform_int produce invalid output when generating int64_t values
--------------------------------+-------------------------------------------
 Reporter: spolitov@… | Owner: no-maintainer
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: random
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: |
--------------------------------+-------------------------------------------
 uniform_int could produce 4294967295 when requested interval is -50,50.
 The problem appears when interval type is int64_t.

 I've attached minimal example to reproduce the issue.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6189>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC