X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=runtime%2Fruntime.c;fp=runtime%2Fruntime.c;h=ceb67729f79ba7e7518736cf9d6812607630520f;hp=14a09f9bb11f19b8a828ca1473c3681d0f9f3910;hb=a1d0b3ca99552878b1becf561d8f3291992aaa67;hpb=ef7c7fd495750e0d26762df9f1a297500553874f diff --git a/runtime/runtime.c b/runtime/runtime.c index 14a09f9..ceb6772 100644 --- a/runtime/runtime.c +++ b/runtime/runtime.c @@ -2,6 +2,8 @@ * Written by Josh Dybnis and released to the public domain, as explained at * http://creativecommons.org/licenses/publicdomain */ +#define _POSIX_C_SOURCE 1 // for rand_r() +#include #include #include "common.h" #include "runtime.h" @@ -19,7 +21,7 @@ typedef struct thread_info { } thread_info_t; __attribute__ ((constructor)) void nbd_init (void) { - sranddev(); + //sranddev(); INIT_THREAD_LOCAL(rand_seed_); INIT_THREAD_LOCAL(tid_); SET_THREAD_LOCAL(tid_, 0);