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

Side by Side Diff: base/rand_util_nacl.cc

Issue 10446043: Cleanup: Remove the C version of GetUrandomFD() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/rand_util_c.h ('k') | base/rand_util_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/rand_util.h" 5 #include "base/rand_util.h"
6 #include "base/rand_util_c.h"
7 6
8 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
9 #include "base/logging.h" 8 #include "base/logging.h"
10 9
11 // TODO(bbudge) Replace this with a proper system header file when NaCl 10 // TODO(bbudge) Replace this with a proper system header file when NaCl
12 // provides one. 11 // provides one.
13 #include "native_client/src/untrusted/irt/irt.h" 12 #include "native_client/src/untrusted/irt/irt.h"
14 13
15 namespace { 14 namespace {
16 15
(...skipping 28 matching lines...) Expand all
45 } // namespace 44 } // namespace
46 45
47 namespace base { 46 namespace base {
48 47
49 uint64 RandUint64() { 48 uint64 RandUint64() {
50 return g_urandom_interface.Pointer()->get_random_bytes(); 49 return g_urandom_interface.Pointer()->get_random_bytes();
51 } 50 }
52 51
53 } // namespace base 52 } // namespace base
54 53
OLDNEW
« no previous file with comments | « base/rand_util_c.h ('k') | base/rand_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698