X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=include%2Fruntime.h;h=ff1d245f3f526663351e72c3804c752e20187a54;hb=5aa9223647fbb52fa8941d92c8896ebaf148b41c;hp=5a87c883b248c490096474701be66c2343301c02;hpb=a03cf3b0c40e6c3b8b4877b49a64288cb3fcb919;p=nbds diff --git a/include/runtime.h b/include/runtime.h index 5a87c88..ff1d245 100644 --- a/include/runtime.h +++ b/include/runtime.h @@ -5,11 +5,14 @@ #ifndef RUNTIME_H #define RUNTIME_H +#include #include "tls.h" extern DECLARE_THREAD_LOCAL(tid_, int); int nbd_thread_create (pthread_t *restrict thread, int thread_id, void *(*start_routine)(void *), void *restrict arg); int nbd_rand (void); +uint64_t nbd_rand_seed (int i); +int nbd_next_rand (uint64_t *r); #endif//RUNTIME_H