From ba990126c119b5df777b9afcdc3d216cb9f21e5b Mon Sep 17 00:00:00 2001 From: "deanm@chromium.org" Date: Fri, 14 Nov 2008 23:28:29 +0000 Subject: RandUInt -> RandUint to match the style of other Uint functions. Review URL: http://codereview.chromium.org/10767 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5517 0039d316-1c4b-4281-b951-d872f2087c98 --- base/rand_util_win.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'base/rand_util_win.cc') diff --git a/base/rand_util_win.cc b/base/rand_util_win.cc index 12cf11e..03176ab 100644 --- a/base/rand_util_win.cc +++ b/base/rand_util_win.cc @@ -11,7 +11,7 @@ namespace { -uint32 RandUInt32() { +uint32 RandUint32() { uint32 number; CHECK(rand_s(&number) == 0); return number; @@ -21,9 +21,9 @@ uint32 RandUInt32() { 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(first_half) << 32) + second_half; } -- cgit v1.1