aboutsummaryrefslogtreecommitdiffstats
path: root/libc/include/stdlib.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-06-20 22:49:20 -0700
committerElliott Hughes <enh@google.com>2014-06-24 14:13:48 -0700
commit0468feb28696751efcddada8de69a622afffdba8 (patch)
tree9d91e7e644011100dafa93d0d1c706e631c81a11 /libc/include/stdlib.h
parentfb0a3622f79bb0a31dd4d0e2f9cea990075ef129 (diff)
downloadandroid_bionic-0468feb28696751efcddada8de69a622afffdba8.tar.gz
android_bionic-0468feb28696751efcddada8de69a622afffdba8.tar.bz2
android_bionic-0468feb28696751efcddada8de69a622afffdba8.zip
Sync to current upstream arc4random.
This is actually revision 1.33, which is no longer the latest, but it's as close to head as we can currently reasonably get. I've also switched to the OpenBSD getentropy_linux.c implementation of getentropy, lightly modified to try to report an error on failure. Bug: 14499627 Change-Id: Ia7c561184b1f366c9bf66f248aa60f0d53535fcb
Diffstat (limited to 'libc/include/stdlib.h')
-rw-r--r--libc/include/stdlib.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h
index 266aa5e78..62b7a67b8 100644
--- a/libc/include/stdlib.h
+++ b/libc/include/stdlib.h
@@ -100,9 +100,10 @@ extern unsigned short *seed48(unsigned short*);
extern double erand48(unsigned short xsubi[3]);
extern double drand48(void);
extern void srand48(long);
-extern unsigned int arc4random(void);
-extern void arc4random_stir(void);
-extern void arc4random_addrandom(unsigned char *, int);
+
+unsigned int arc4random(void);
+unsigned int arc4random_uniform(unsigned int);
+void arc4random_buf(void*, size_t);
#define RAND_MAX 0x7fffffff