]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
sranddev() is FreeBSD only
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 19 May 2020 20:16:26 +0000 (15:16 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 19 May 2020 20:16:26 +0000 (15:16 -0500)
src/lib/util/heap_tests.c

index 5adcf36413d388632f6fefe92060f05ac15ec677..f778df30739118bd41dead9f18a0aa8f52ed6693 100644 (file)
@@ -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;
        }