diff options
Diffstat (limited to 'base/rand_util_posix.cc')
-rw-r--r-- | base/rand_util_posix.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/base/rand_util_posix.cc b/base/rand_util_posix.cc index c65551d..43dfd1e 100644 --- a/base/rand_util_posix.cc +++ b/base/rand_util_posix.cc @@ -3,6 +3,7 @@ // found in the LICENSE file. #include "base/rand_util.h" +#include "base/rand_util_c.h" #include <errno.h> #include <fcntl.h> @@ -54,3 +55,7 @@ uint64 RandUint64() { } } // namespace base + +int GetUrandomFD(void) { + return g_urandom_fd.Pointer()->fd(); +} |