diff options
| author | Elliott Hughes <enh@google.com> | 2014-07-18 15:57:41 -0700 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2014-07-21 14:38:16 -0700 |
| commit | 2b67d7dee09852789d9ac7d8972ed6cdb2c18430 (patch) | |
| tree | a9a5165ceb108943a62dd251c2aeeccd2f96ae23 /libc/private/thread_private.h | |
| parent | 1fb90a8aa0086f7e4f7960a5b916b8605a9a3c96 (diff) | |
| download | android_bionic-2b67d7dee09852789d9ac7d8972ed6cdb2c18430.tar.gz android_bionic-2b67d7dee09852789d9ac7d8972ed6cdb2c18430.tar.bz2 android_bionic-2b67d7dee09852789d9ac7d8972ed6cdb2c18430.zip | |
Use upstream OpenBSD's arc4random.
The getentropy_linux.c is lightly modified to build on Android, but we're now
completely in sync with upstream OpenBSD's arc4random implementation.
Change-Id: If32229fc28aba908035fb38703190d41ddcabc95
Diffstat (limited to 'libc/private/thread_private.h')
| -rw-r--r-- | libc/private/thread_private.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/private/thread_private.h b/libc/private/thread_private.h index b8b1a815e..2e3ac3d97 100644 --- a/libc/private/thread_private.h +++ b/libc/private/thread_private.h @@ -46,8 +46,9 @@ __LIBC_HIDDEN__ void _thread_atexit_unlock(void); __LIBC_HIDDEN__ void _thread_arc4_lock(void); __LIBC_HIDDEN__ void _thread_arc4_unlock(void); -#define _ARC4_LOCK() _thread_arc4_lock() -#define _ARC4_UNLOCK() _thread_arc4_unlock() +#define _ARC4_LOCK() _thread_arc4_lock() +#define _ARC4_UNLOCK() _thread_arc4_unlock() +#define _ARC4_ATFORK(f) pthread_atfork(NULL, NULL, (f)) __END_DECLS |
