| Index: base/rand_util_posix.cc
|
| diff --git a/base/rand_util_posix.cc b/base/rand_util_posix.cc
|
| index fe73b960f948222007fceafd0213eceadc526e3b..6a6e05ada814d2758a46f82b2097016665179c67 100644
|
| --- a/base/rand_util_posix.cc
|
| +++ b/base/rand_util_posix.cc
|
| @@ -6,6 +6,8 @@
|
|
|
| #include <errno.h>
|
| #include <fcntl.h>
|
| +#include <stddef.h>
|
| +#include <stdint.h>
|
| #include <unistd.h>
|
|
|
| #include "base/files/file_util.h"
|
| @@ -39,8 +41,8 @@ base::LazyInstance<URandomFd>::Leaky g_urandom_fd = LAZY_INSTANCE_INITIALIZER;
|
| namespace base {
|
|
|
| // NOTE: This function must be cryptographically secure. http://crbug.com/140076
|
| -uint64 RandUint64() {
|
| - uint64 number;
|
| +uint64_t RandUint64() {
|
| + uint64_t number;
|
| RandBytes(&number, sizeof(number));
|
| return number;
|
| }
|
|
|