tryarc4random.c (409B)
1 /* ISC license. */ 2 3 #undef _POSIX_C_SOURCE 4 #undef _XOPEN_SOURCE 5 6 #ifndef __EXTENSIONS__ 7 #define __EXTENSIONS__ 8 #endif 9 #ifndef _GNU_SOURCE 10 #define _GNU_SOURCE 11 #endif 12 #ifndef _BSD_SOURCE 13 #define _BSD_SOURCE 14 #endif 15 #ifndef _NETBSD_SOURCE 16 #define _NETBSD_SOURCE 17 #endif 18 #ifndef _INCOMPLETE_XOPEN_C063 19 #define _INCOMPLETE_XOPEN_C063 20 #endif 21 22 #include <stdlib.h> 23 24 int main (void) 25 { 26 return arc4random_uniform(1) ; 27 }