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

Unified Diff: base/rand_util_win.cc

Issue 10767: RandUInt -> RandUint to match the style of other Uint functions. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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 | « base/rand_util_posix.cc ('k') | chrome/browser/safe_browsing/bloom_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/rand_util_win.cc
===================================================================
--- base/rand_util_win.cc (revision 5105)
+++ base/rand_util_win.cc (working copy)
@@ -11,7 +11,7 @@
namespace {
-uint32 RandUInt32() {
+uint32 RandUint32() {
uint32 number;
CHECK(rand_s(&number) == 0);
return number;
@@ -21,9 +21,9 @@
namespace base {
-uint64 RandUInt64() {
- uint32 first_half = RandUInt32();
- uint32 second_half = RandUInt32();
+uint64 RandUint64() {
+ uint32 first_half = RandUint32();
+ uint32 second_half = RandUint32();
return (static_cast<uint64>(first_half) << 32) + second_half;
}
« no previous file with comments | « base/rand_util_posix.cc ('k') | chrome/browser/safe_browsing/bloom_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698