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

Unified Diff: src/shared/platform/nacl_global_secure_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 | « no previous file | src/shared/platform/nacl_global_secure_random.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/platform/nacl_global_secure_random.h
diff --git a/src/shared/platform/nacl_global_secure_random.h b/src/shared/platform/nacl_global_secure_random.h
index 76187ac7e2cd1bd67fda91b2fbfeda0c140721e5..01c48a3152587f42a985eab5a34a5e09b2af968b 100644
--- a/src/shared/platform/nacl_global_secure_random.h
+++ b/src/shared/platform/nacl_global_secure_random.h
@@ -24,6 +24,8 @@ int32_t NaClGlobalSecureRngUniform(int32_t range_max);
uint32_t NaClGlobalSecureRngUint32(void);
+void NaClGlobalSecureRngGenerateBytes(uint8_t *buf, size_t buf_size);
+
/*
* Generate a random alpha-numeric name for a socket, a semaphore or some
* other device.
« no previous file with comments | « no previous file | src/shared/platform/nacl_global_secure_random.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698