Index: src/OFObject.m ================================================================== --- src/OFObject.m +++ src/OFObject.m @@ -24,10 +24,14 @@ #include #ifdef OF_APPLE_RUNTIME # include #endif + +#ifdef HAVE_GETRANDOM +# include +#endif #import "OFObject.h" #import "OFArray.h" #import "OFLocale.h" #import "OFMethodSignature.h" @@ -102,11 +106,11 @@ Class isa; } allocFailedException; uint32_t of_hash_seed; -#ifndef HAVE_ARC4RANDOM +#if !defined(HAVE_ARC4RANDOM) && !defined(HAVE_GETRANDOM) static void initRandom(void) { struct timeval tv;