summaryrefslogtreecommitdiff
path: root/boost/random/seed_seq.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/random/seed_seq.hpp')
-rw-r--r--boost/random/seed_seq.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/random/seed_seq.hpp b/boost/random/seed_seq.hpp
index d76aef4f5e..b0b1de24e3 100644
--- a/boost/random/seed_seq.hpp
+++ b/boost/random/seed_seq.hpp
@@ -97,7 +97,7 @@ public:
& mask);
r3 = r3 ^ (r3 >> 27);
r3 = (r3 * 1566083941u) & mask;
- value_type r4 = static_cast<value_type>(r3 - k%m);
+ value_type r4 = static_cast<value_type>(r3 - k%n);
*(first + (k+p)%n) ^= r3;
*(first + (k+q)%n) ^= r4;
*(first + k%n) = r4;