Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: runtime/vm/random.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/random.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/random.cc
diff --git a/runtime/vm/random.cc b/runtime/vm/random.cc
index 5153ffe21f070f78e1ed65d18b1e1393b4d6ce23..3fd8db7a1476c931a0896efe0d38011c3831d32b 100644
--- a/runtime/vm/random.cc
+++ b/runtime/vm/random.cc
@@ -29,7 +29,6 @@ Random::Random() {
Initialize(seed);
}
-
void Random::Initialize(uint64_t seed) {
ASSERT(seed != 0);
// Crank the next state a couple of times.
@@ -40,12 +39,10 @@ void Random::Initialize(uint64_t seed) {
NextState();
}
-
Random::Random(uint64_t seed) {
Initialize(seed);
}
-
Random::~Random() {
// Nothing to be done here.
}
@@ -62,7 +59,6 @@ void Random::NextState() {
_state = (A * state_lo) + state_hi;
}
-
uint32_t Random::NextUInt32() {
const uint64_t MASK_32 = 0xffffffff;
NextState();
« no previous file with comments | « runtime/vm/random.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698