summaryrefslogtreecommitdiffstats
path: root/src/ProbabDistrib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ProbabDistrib.cpp')
-rw-r--r--src/ProbabDistrib.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ProbabDistrib.cpp b/src/ProbabDistrib.cpp
index f63aa0605..7e38d5c12 100644
--- a/src/ProbabDistrib.cpp
+++ b/src/ProbabDistrib.cpp
@@ -100,8 +100,7 @@ bool cProbabDistrib::SetDefString(const AString & a_DefString)
int cProbabDistrib::Random(MTRand & a_Rand) const
{
- int v = a_Rand.randInt(m_Sum);
- return MapValue(v);
+ return MapValue(a_Rand.RandInt(m_Sum));
}