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

Unified Diff: src/shared/platform/nacl_global_secure_random.c

Issue 6937003: modified nacl_sync.h to have NACL_WUR for all functions that return a (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 8 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/shared/platform/nacl.scons ('k') | src/shared/platform/nacl_interruptible_condvar.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.c
===================================================================
--- src/shared/platform/nacl_global_secure_random.c (revision 5177)
+++ src/shared/platform/nacl_global_secure_random.c (working copy)
@@ -1,7 +1,7 @@
/*
- * Copyright 2008 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.
+ * Copyright (c) 2011 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.
*/
/*
@@ -20,7 +20,7 @@
static struct NaClSecureRng *nacl_grngp = &nacl_global_rng;
void NaClGlobalSecureRngInit(void) {
- NaClMutexCtor(&nacl_global_rng_mu);
+ NaClXMutexCtor(&nacl_global_rng_mu);
if (!NaClSecureRngCtor(nacl_grngp)) {
NaClLog(LOG_FATAL,
"Could not construct global random number generator.\n");
@@ -33,9 +33,9 @@
}
void NaClGlobalSecureRngSwitchRngForTesting(struct NaClSecureRng *rng) {
- NaClMutexLock(&nacl_global_rng_mu);
+ NaClXMutexLock(&nacl_global_rng_mu);
nacl_grngp = rng;
- NaClMutexUnlock(&nacl_global_rng_mu);
+ NaClXMutexUnlock(&nacl_global_rng_mu);
}
int32_t NaClGlobalSecureRngUniform(int32_t range_max) {
« no previous file with comments | « src/shared/platform/nacl.scons ('k') | src/shared/platform/nacl_interruptible_condvar.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698