2014-10-30 16:52:29 +01:00
|
|
|
#ifndef LIBCRYPTOCOMPAT_ARC4RANDOM_H
|
|
|
|
#define LIBCRYPTOCOMPAT_ARC4RANDOM_H
|
|
|
|
|
2014-10-28 01:22:03 +01:00
|
|
|
#include <sys/param.h>
|
|
|
|
|
|
|
|
#if defined(__FreeBSD__)
|
|
|
|
#include "arc4random_freebsd.h"
|
|
|
|
|
|
|
|
#elif defined(__linux__)
|
2014-07-18 06:58:46 +02:00
|
|
|
#include "arc4random_linux.h"
|
|
|
|
|
2014-07-29 03:57:43 +02:00
|
|
|
#elif defined(__APPLE__)
|
2014-07-18 06:58:46 +02:00
|
|
|
#include "arc4random_osx.h"
|
|
|
|
|
2014-07-29 03:57:43 +02:00
|
|
|
#elif defined(__sun)
|
2014-07-18 06:58:46 +02:00
|
|
|
#include "arc4random_solaris.h"
|
|
|
|
|
2014-07-29 03:57:43 +02:00
|
|
|
#elif defined(__WIN32)
|
2014-07-18 06:58:46 +02:00
|
|
|
#include "arc4random_win.h"
|
2014-07-29 03:57:43 +02:00
|
|
|
|
|
|
|
#else
|
|
|
|
#error "No arc4random hooks defined for this platform."
|
|
|
|
|
2014-07-18 06:58:46 +02:00
|
|
|
#endif
|
|
|
|
|
2014-10-30 16:52:29 +01:00
|
|
|
#endif
|