Boost C++ Libraries: Ticket #2667: linear_congruential operator>>() https://svn.boost.org/trac10/ticket/2667 <p> Hi, </p> <p> In &lt;boost/random/linear_congruential.hpp&gt; </p> <p> line122: template&lt;class CharT, class Traits&gt; line123: friend std::basic_istream&lt;CharT,Traits&gt;&amp; line124: operator&gt;&gt;(std::basic_istream&lt;CharT,Traits&gt;&amp; is, line125: linear_congruential&amp; lcg) line126: { line127: return is &gt;&gt; lcg._x; line128: } </p> <p> Input to lcg._x dose not mod with linear_congruential::modulus. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2667 Trac 1.4.3 rick68@… Tue, 20 Jan 2009 09:35:56 GMT attachment set https://svn.boost.org/trac10/ticket/2667 https://svn.boost.org/trac10/ticket/2667 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">linear_congruential.hpp.diff</span> </li> </ul> <p> Patch </p> Ticket Steven Watanabe Mon, 23 Feb 2009 00:15:23 GMT <link>https://svn.boost.org/trac10/ticket/2667#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2667#comment:1</guid> <description> <p> I don't think this is a bug. The input operator is only required to handle values that can be produced by the output operator. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Tue, 08 Jun 2010 04:04:00 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2667#comment:2 https://svn.boost.org/trac10/ticket/2667#comment:2 <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/62548" title="Check for range errors in the input operator of linear_congruential. ...">[62548]</a>) Check for range errors in the input operator of linear_congruential. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2667" title="#2667: Patches: linear_congruential operator&gt;&gt;() (closed: fixed)">#2667</a> </p> Ticket