[Boost-bugs] [Boost C++ Libraries] #4001: triangle_distribution produces invalid values (Fix included)

Subject: [Boost-bugs] [Boost C++ Libraries] #4001: triangle_distribution produces invalid values (Fix included)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-12 17:26:52


#4001: triangle_distribution produces invalid values (Fix included)
--------------------------+-------------------------------------------------
 Reporter: SaBer | Owner: no-maintainer
     Type: Patches | Status: new
Milestone: Boost 1.43.0 | Component: random
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 triangle_distribution produces values which are all over the place, see
 http://codepad.org/z3G53SfE for an example.

 The error is in operator():
     result_type u = eng();
 should be:
     result_type u = uniform_01<result_type>()(eng);
 (or something similar).

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4001>
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:02 UTC