OLD | NEW |
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 Loading... |
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 |
OLD | NEW |