diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2015-09-01 15:50:33 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2015-09-01 15:50:33 -0500 |
commit | fe47f0a72fda6b101c10810acfb60569fe5b05cd (patch) | |
tree | 60ceffb990f546249e8e4033c6e0c293b02f9187 /src/mem/ruby/system/System.cc | |
parent | 5d555df359868ade54ea0a23b027839bd40ae613 (diff) | |
download | gem5-fe47f0a72fda6b101c10810acfb60569fe5b05cd.tar.xz |
ruby: remove random seed
We no longer use the C library based random number generator: random().
Instead we use the C++ library provided rng. So setting the random seed for
the RubySystem class has no effect. Hence the variable and the corresponding
option are being dropped.
Diffstat (limited to 'src/mem/ruby/system/System.cc')
-rw-r--r-- | src/mem/ruby/system/System.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mem/ruby/system/System.cc b/src/mem/ruby/system/System.cc index 6ebdd3ad6..490a1f085 100644 --- a/src/mem/ruby/system/System.cc +++ b/src/mem/ruby/system/System.cc @@ -45,7 +45,6 @@ using namespace std; -int RubySystem::m_random_seed; bool RubySystem::m_randomization; uint32_t RubySystem::m_block_size_bytes; uint32_t RubySystem::m_block_size_bits; @@ -60,8 +59,6 @@ RubySystem::RubySystem(const Params *p) : ClockedObject(p), m_access_backing_store(p->access_backing_store), m_cache_recorder(NULL) { - m_random_seed = p->random_seed; - srandom(m_random_seed); m_randomization = p->randomization; m_block_size_bytes = p->block_size_bytes; |