[mlpack-svn] r11155 - mlpack/trunk/src/mlpack/core/math
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Jan 18 18:32:53 EST 2012
Author: rcurtin
Date: 2012-01-18 18:32:52 -0500 (Wed, 18 Jan 2012)
New Revision: 11155
Modified:
mlpack/trunk/src/mlpack/core/math/random.hpp
Log:
Hey, cool! A warning solved a bug.
Modified: mlpack/trunk/src/mlpack/core/math/random.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/math/random.hpp 2012-01-18 23:26:35 UTC (rev 11154)
+++ mlpack/trunk/src/mlpack/core/math/random.hpp 2012-01-18 23:32:52 UTC (rev 11155)
@@ -86,8 +86,7 @@
#if BOOST_VERSION >= 104700
boost::random::uniform_int_distribution<> dist(lo, hiExclusive - 1);
#else
- (void) lo; // Since we don't use lo in older boost versions
- boost::uniform_int<> dist(0, hiExclusive - 1);
+ boost::uniform_int<> dist(lo, hiExclusive - 1)
#endif
return dist(randGen);
More information about the mlpack-svn
mailing list