X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-mac.h;h=1c3798bfb56f8c52fbd166f60dbb6ce80cb1ad9b;hp=77c21656d34bfbbeb3fcec50f9fc79a5439e4cb2;hb=535313705d69dc16f27ca38acf2f9bf7205e410d;hpb=3b2e1464ae58caf42c74ab4bdeaa5eae7c38a23f diff --git a/os/os-mac.h b/os/os-mac.h index 77c21656..1c3798bf 100644 --- a/os/os-mac.h +++ b/os/os-mac.h @@ -14,11 +14,11 @@ #define FIO_HAVE_POSIXAIO #define FIO_USE_GENERIC_BDEV_SIZE +#define FIO_USE_GENERIC_RAND #define OS_MAP_ANON MAP_ANON typedef unsigned long os_cpu_mask_t; -typedef unsigned int os_random_state_t; typedef unsigned int clockid_t; static inline int blockdev_invalidate_cache(int fd) @@ -35,18 +35,4 @@ static inline unsigned long long os_phys_mem(void) sysctl(mib, 2, &mem, &len, NULL, 0); return mem; } - -static inline void os_random_seed(unsigned long seed, os_random_state_t *rs) -{ - srand(seed); -} - -static inline long os_random_long(os_random_state_t *rs) -{ - long val; - - val = rand_r(rs); - return val; -} - #endif