Opened 14 years ago

Closed 14 years ago

#2665 closed Patches (fixed)

linear_congruential constuctor

Reported by: rick68@… Owned by: No-Maintainer
Milestone: Boost 1.38.0 Component: random
Version: Boost 1.37.0 Severity: Problem
Keywords: Cc:

Description

Hi.

In <boost/random/linear_congruential.hpp>

line 67: template<class It> line 68: linear_congruential(It& first, It last) { seed(first, last); }

Data member _module dose not init.

Attachments (1)

linear_congruential.hpp.diff (446 bytes ) - added by rick68@… 14 years ago.
Patch

Download all attachments as: .zip

Change History (2)

by rick68@…, 14 years ago

Patch

comment:1 by Steven Watanabe, 14 years ago

Resolution: fixed
Status: newclosed

(In [51410]) Initialize _modulus in the linear_congruential constructor that takes a pair of iterators. Fixes #2665

Note: See TracTickets for help on using tickets.