projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ruby: message buffer: removes some unecessary functions.
[gem5.git]
/
src
/
base
/
random.hh
diff --git
a/src/base/random.hh
b/src/base/random.hh
index 401ba086ff16d56fca9ed2fcb00e18f0e3517180..34107c76f322a9ff1dc180316f78156146e8fb69 100644
(file)
--- a/
src/base/random.hh
+++ b/
src/base/random.hh
@@
-29,14
+29,20
@@
* Ali Saidi
*/
* 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>
#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;
class Checkpoint;
@@
-203,13
+209,6
@@
class Random
return _random(min, max);
}
return _random(min, max);
}
- template <typename T>
- T
- random(const Range<T> &range)
- {
- return _random(range.start, range.end);
- }
-
// [0,1]
double
gen_real1()
// [0,1]
double
gen_real1()