Ticket #2665: linear_congruential.hpp.diff

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

Patch

  • linear_congruential.hpp

    old new  
    6565  }
    6666
    6767  template<class It>
    68   linear_congruential(It& first, It last) { seed(first, last); }
     68  linear_congruential(It& first, It last)
     69    : _modulus(modulus)
     70  { seed(first, last); }
    6971
    7072  // compiler-generated copy constructor and assignment operator are fine
    7173  void seed(IntType x0 = 1)