summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils.c b/utils.c
index cf3bd09ee..ef0246252 100644
--- a/utils.c
+++ b/utils.c
@@ -884,6 +884,9 @@ int getloadavg(double *list, int nelem)
/* glibc puts a lock inside random(3), so that the results are thread-safe.
* BSD libc (and others) do not. */
#ifndef linux
+
+AST_MUTEX_DEFINE_STATIC(randomlock);
+
long int ast_random(void)
{
long int res;