OSDN Git Service

Add platform-dependent config for arc4random
authorGreg Hartman <ghartman@google.com>
Wed, 8 Apr 2015 20:05:08 +0000 (13:05 -0700)
committerGreg Hartman <ghartman@google.com>
Wed, 8 Apr 2015 20:50:06 +0000 (13:50 -0700)
Change-Id: I50317ca1eed43779352a44d8e02123583df6a4fd

config.h

index c68cf80..c7c9d6c 100644 (file)
--- a/config.h
+++ b/config.h
 #define HAVE_ADDR_V6_IN_UTMPX 1
 
 /* Define to 1 if you have the `arc4random' function. */
-/* #undef HAVE_ARC4RANDOM */
+#define HAVE_ARC4RANDOM 1
 
 /* Define to 1 if you have the `arc4random_buf' function. */
-/* #undef HAVE_ARC4RANDOM_BUF */
+#define HAVE_ARC4RANDOM_BUF 1
+
+#ifndef __LP64__
+#define HAVE_ARC4RANDOM_STIR 1
+#endif
 
 /* Define to 1 if you have the `arc4random_uniform' function. */
-/* #undef HAVE_ARC4RANDOM_UNIFORM */
+#define HAVE_ARC4RANDOM_UNIFORM 1
 
 /* Define to 1 if you have the `asprintf' function. */
 #define HAVE_ASPRINTF 1