File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,12 @@ namespace gem5
47
47
{
48
48
49
49
Random::Random (): Random(globalSeed){}
50
+
50
51
Random::Random (uint32_t s)
51
52
{
52
53
init (s);
53
54
}
54
55
55
-
56
-
57
56
Random::~Random ()
58
57
{
59
58
if (instances) {
Original file line number Diff line number Diff line change @@ -76,8 +76,8 @@ class Random
76
76
bool exists = false ;
77
77
for (const auto & weak_ptr : *instances) {
78
78
if (!weak_ptr.expired () && weak_ptr.lock () == randpoint) {
79
- exists = true ;
80
- break ;
79
+ exists = true ;
80
+ break ;
81
81
}
82
82
}
83
83
if (!exists) {
@@ -97,8 +97,8 @@ class Random
97
97
bool exists = false ;
98
98
for (const auto & weak_ptr : *instances) {
99
99
if (!weak_ptr.expired () && weak_ptr.lock () == randpoint) {
100
- exists = true ;
101
- break ;
100
+ exists = true ;
101
+ break ;
102
102
}
103
103
}
104
104
if (!exists) {
You can’t perform that action at this time.
0 commit comments