--- trunk/livstidsfanger.c 2014/11/07 09:29:54 8 +++ trunk/livstidsfanger.c 2014/11/07 12:40:00 9 @@ -10,6 +10,7 @@ #include #include #include +#include #include #if __STDC_VERSION__ >= 201112L @@ -41,7 +42,11 @@ noreturn int main(int argc, char **argv) atexit(visResultater); signal(SIGINT, signalhandler); +#ifdef __FreeBSD__ srandomdev(); +#else + srandom((unsigned int)time(NULL)); +#endif memset((void *)&antallBesok, 0, sizeof(antallBesok)); brytere[0] = random() & 1;