arc4random.h (450B)
1 #ifndef LIBCRYPTOCOMPAT_ARC4RANDOM_H 2 #define LIBCRYPTOCOMPAT_ARC4RANDOM_H 3 4 #include <sys/param.h> 5 6 #if defined(__FreeBSD__) 7 #include "arc4random_freebsd.h" 8 9 #elif defined(__linux__) 10 #include "arc4random_linux.h" 11 12 #elif defined(__APPLE__) 13 #include "arc4random_osx.h" 14 15 #elif defined(__sun) 16 #include "arc4random_solaris.h" 17 18 #elif defined(_WIN32) 19 #include "arc4random_win.h" 20 21 #else 22 #error "No arc4random hooks defined for this platform." 23 24 #endif 25 26 #endif