* 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 <stdlib.h>
#include <pthread.h>
#include "common.h"
#include "runtime.h"
void *restrict arg;
} thread_info_t;
-void nbd_init (void) {
- sranddev();
+__attribute__ ((constructor)) void nbd_init (void) {
+ //sranddev();
INIT_THREAD_LOCAL(rand_seed_);
INIT_THREAD_LOCAL(tid_);
SET_THREAD_LOCAL(tid_, 0);