#ifndef AWSLC_HEADER_CRYPTO_RAND_EXTRA_RAND_INTERNAL_H
#define AWSLC_HEADER_CRYPTO_RAND_EXTRA_RAND_INTERNAL_H
#include <openssl/ctrdrbg.h>
#if defined(BORINGSSL_UNSAFE_DETERMINISTIC_MODE)
#define OPENSSL_RAND_DETERMINISTIC
#elif defined(OPENSSL_WINDOWS)
#define OPENSSL_RAND_WINDOWS
#elif defined(OPENSSL_MACOS) || defined(OPENSSL_OPENBSD) || defined(OPENSSL_FREEBSD) || defined(OPENSSL_SOLARIS)
#define OPENSSL_RAND_GETENTROPY
#elif defined(OPENSSL_IOS)
#define OPENSSL_RAND_CCRANDOMGENERATEBYTES
#else
#define OPENSSL_RAND_URANDOM
#endif
#if defined(__cplusplus)
extern "C" {
#endif
OPENSSL_EXPORT void CRYPTO_sysrand(uint8_t *buf, size_t len);
#if defined(OPENSSL_RAND_URANDOM)
int CRYPTO_sysrand_if_available(uint8_t *buf, size_t len);
#else
OPENSSL_INLINE int CRYPTO_sysrand_if_available(uint8_t *buf, size_t len) {
CRYPTO_sysrand(buf, len);
return 1;
}
#endif
#define MAX_BACKOFF_RETRIES 9
OPENSSL_EXPORT int snapsafe_fallback_get_seed(uint8_t seed[CTR_DRBG_ENTROPY_LEN]);
#if defined(__cplusplus)
} #endif
#endif