OSDN Git Service

Use upstream OpenBSD's arc4random.
authorElliott Hughes <enh@google.com>
Fri, 18 Jul 2014 22:57:41 +0000 (15:57 -0700)
committerElliott Hughes <enh@google.com>
Mon, 21 Jul 2014 21:38:16 +0000 (14:38 -0700)
commit2b67d7dee09852789d9ac7d8972ed6cdb2c18430
treea9a5165ceb108943a62dd251c2aeeccd2f96ae23
parent1fb90a8aa0086f7e4f7960a5b916b8605a9a3c96
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
libc/Android.mk
libc/bionic/arc4random.c [deleted file]
libc/bionic/getentropy_linux.c [new file with mode: 0644]
libc/private/thread_private.h
libc/upstream-openbsd/android/include/arc4random.h [new file with mode: 0644]
libc/upstream-openbsd/android/include/openbsd-compat.h
libc/upstream-openbsd/lib/libc/crypt/arc4random.c [new file with mode: 0644]
libc/upstream-openbsd/lib/libc/crypt/arc4random_uniform.c [new file with mode: 0644]