summaryrefslogtreecommitdiffstats
path: root/base/rand_util_c.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/rand_util_c.h')
-rw-r--r--base/rand_util_c.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/rand_util_c.h b/base/rand_util_c.h
index 5a0bf73..20e3082 100644
--- a/base/rand_util_c.h
+++ b/base/rand_util_c.h
@@ -9,6 +9,9 @@
extern "C" {
#endif
+// Note this *should* be in "namespace base" but the function is needed
+// from C so namespaces cannot be used.
+
// Returns an FD for /dev/urandom, possibly pre-opened before sandboxing
// was switched on. This is a C function so that Native Client can use it.
int GetUrandomFD(void);