diff --git a/source/tools/math.h b/source/tools/math.h index acc969aedd..8fe33467e2 100644 --- a/source/tools/math.h +++ b/source/tools/math.h @@ -104,7 +104,7 @@ namespace emp { if ((dividend % divisor) * 2 == divisor) { // ... by default, the result is rounded up; // with 1/2 probability round down instead - res -= r.GetInt(2); + res -= r.GetUInt(2); } return res; }