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

Unified Diff: src/trusted/service_runtime/sys_random.h

Issue 537543003: Add a get_random_bytes() syscall to replace the SRPC-based implementation (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fix glibc tests Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/service_runtime/service_runtime.gyp ('k') | src/trusted/service_runtime/sys_random.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/service_runtime/sys_random.h
diff --git a/src/trusted/service_runtime/sys_random.h b/src/trusted/service_runtime/sys_random.h
new file mode 100644
index 0000000000000000000000000000000000000000..6c36e64424b3cec4aed17bb3502f26ee96902e6d
--- /dev/null
+++ b/src/trusted/service_runtime/sys_random.h
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2014 The Native Client Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SYS_RANDOM_H_
+#define NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SYS_RANDOM_H_ 1
+
+#include "native_client/src/include/nacl_base.h"
+#include "native_client/src/include/portability.h"
+
+EXTERN_C_BEGIN
+
+struct NaClAppThread;
+
+int32_t NaClSysGetRandomBytes(struct NaClAppThread *natp,
+ uint32_t buf_addr, uint32_t buf_size);
+
+EXTERN_C_END
+
+#endif
« no previous file with comments | « src/trusted/service_runtime/service_runtime.gyp ('k') | src/trusted/service_runtime/sys_random.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698