ruby: message buffer: removes some unecessary functions.
[gem5.git] / src / base / random.hh
index 401ba086ff16d56fca9ed2fcb00e18f0e3517180..34107c76f322a9ff1dc180316f78156146e8fb69 100644 (file)
  *          Ali Saidi
  */
 
+/*
+ * Mersenne Twister random number generator has a period of
+ * 2^19937-1.
+ *
+ * The actual math is in its own file to keep the license clear.
+ */
+
 #ifndef __BASE_RANDOM_HH__
 #define __BASE_RANDOM_HH__
 
 #include <ios>
 #include <string>
 
-#include "base/range.hh"
-#include "sim/host.hh"
+#include "base/types.hh"
 
 class Checkpoint;
 
@@ -203,13 +209,6 @@ class Random
         return _random(min, max);
     }
 
-    template <typename T>
-    T
-    random(const Range<T> &range)
-    {
-        return _random(range.start, range.end);
-    }
-
     // [0,1]
     double
     gen_real1()