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

Unified Diff: src/base/utils/random-number-generator.cc

Issue 358363002: Move platform abstraction to base library (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 6 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
Index: src/base/utils/random-number-generator.cc
diff --git a/src/utils/random-number-generator.cc b/src/base/utils/random-number-generator.cc
similarity index 95%
rename from src/utils/random-number-generator.cc
rename to src/base/utils/random-number-generator.cc
index 3da6a5aa4ac3e99d786a44a0a3a93580eaa61bbf..4db190de49470cfd5d14b28d60ab3e4bc745c78a 100644
--- a/src/utils/random-number-generator.cc
+++ b/src/base/utils/random-number-generator.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "src/utils/random-number-generator.h"
+#include "src/base/utils/random-number-generator.h"
#include <stdio.h>
#include <stdlib.h>
@@ -10,11 +10,11 @@
#include <new>
#include "src/base/macros.h"
-#include "src/platform/mutex.h"
-#include "src/platform/time.h"
+#include "src/base/platform/mutex.h"
+#include "src/base/platform/time.h"
namespace v8 {
-namespace internal {
+namespace base {
static LazyMutex entropy_mutex = LAZY_MUTEX_INITIALIZER;
static RandomNumberGenerator::EntropySource entropy_source = NULL;
@@ -128,4 +128,4 @@ void RandomNumberGenerator::SetSeed(int64_t seed) {
seed_ = (seed ^ kMultiplier) & kMask;
}
-} } // namespace v8::internal
+} } // namespace v8::base

Powered by Google App Engine
This is Rietveld 408576698