From: Arran Cudbard-Bell Date: Tue, 19 May 2020 20:16:26 +0000 (-0500) Subject: sranddev() is FreeBSD only X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d1cebd1ed805a0718da7bd33cf110f7efb6c157;p=thirdparty%2Ffreeradius-server.git sranddev() is FreeBSD only --- diff --git a/src/lib/util/heap_tests.c b/src/lib/util/heap_tests.c index 5adcf36413d..f778df30739 100644 --- a/src/lib/util/heap_tests.c +++ b/src/lib/util/heap_tests.c @@ -48,7 +48,7 @@ static void heap_test(int skip) static bool done_init = false; if (!done_init) { - sranddev(); + srand((unsigned int)time(NULL)); done_init = true; } @@ -146,7 +146,7 @@ static void heap_cycle(void) static bool done_init = false; if (!done_init) { - sranddev(); + srand((unsigned int)time(NULL)); done_init = true; }