2014-10-30 10:52:29 -05:00
|
|
|
#ifndef LIBCRYPTOCOMPAT_ARC4RANDOM_H
|
|
|
|
#define LIBCRYPTOCOMPAT_ARC4RANDOM_H
|
|
|
|
|
2014-10-27 19:22:03 -05:00
|
|
|
#include <sys/param.h>
|
|
|
|
|
|
|
|
#if defined(__FreeBSD__)
|
|
|
|
#include "arc4random_freebsd.h"
|
|
|
|
|
2014-12-08 11:08:45 +09:00
|
|
|
#elif defined(__hpux)
|
|
|
|
#include "arc4random_hpux.h"
|
|
|
|
|
2014-10-27 19:22:03 -05:00
|
|
|
#elif defined(__linux__)
|
2014-07-17 23:58:46 -05:00
|
|
|
#include "arc4random_linux.h"
|
|
|
|
|
2014-07-28 20:57:43 -05:00
|
|
|
#elif defined(__APPLE__)
|
2014-07-17 23:58:46 -05:00
|
|
|
#include "arc4random_osx.h"
|
|
|
|
|
2014-07-28 20:57:43 -05:00
|
|
|
#elif defined(__sun)
|
2014-07-17 23:58:46 -05:00
|
|
|
#include "arc4random_solaris.h"
|
|
|
|
|
2014-11-05 20:52:00 +08:00
|
|
|
#elif defined(_WIN32)
|
2014-07-17 23:58:46 -05:00
|
|
|
#include "arc4random_win.h"
|
2014-07-28 20:57:43 -05:00
|
|
|
|
|
|
|
#else
|
|
|
|
#error "No arc4random hooks defined for this platform."
|
|
|
|
|
2014-07-17 23:58:46 -05:00
|
|
|
#endif
|
|
|
|
|
2014-10-30 10:52:29 -05:00
|
|
|
#endif
|