id summary reporter owner description type status milestone component version severity resolution keywords cc 599 uniform_01 copies engine instead of using a reference uhoreg jmaurer "{{{ In the uniform_01 class, the constructor takes a base_type (i.e. the random number generator) as its argument, and the _rng member is just a base_type. This results in uniform_01 copying the random number generator, along with its state. Thus if one creates several uniform_01 objects (e.g. one at the beginning of each of several functions), they will all return the same random numbers. The constructor should take a reference (i.e. base_type&) as its argument, and the _rng member should be a base_type&. (Indeed, the documentation at http://www.boost.org/libs/random/random-distributions.html#uniform_01 says that the constructor takes a base_type&.) }}}" Bugs closed random None fixed