diff --git a/src/configure b/src/configure
index 84a31c636c58d5228de5ccda36cb611527982a13..ebbc897a712c19af4b41e304589e6206d82561f4 100755
--- a/src/configure
+++ b/src/configure
@@ -4433,7 +4433,7 @@ s%@LIBOBJS@%$LIBOBJS%g
 s%@GETRUSAGE@%$GETRUSAGE%g
 s%@GETHOSTNAME@%$GETHOSTNAME%g
 s%@SRANDOM@%$SRANDOM%g
-s%@RANDOM@%$RANDOM%g
+s%@MISSING_RANDOM@%$MISSING_RANDOM%g
 s%@STRDUP@%$STRDUP%g
 s%@STRCASECMP@%$STRCASECMP%g
 s%@INET_ATON@%$INET_ATON%g
diff --git a/src/configure.in b/src/configure.in
index d584ef127f8942df381d21fc6ec34f17f9ecdd77..e5d5826d42229629b771224b7824b37cbb66a20d 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -489,7 +489,7 @@ AC_CHECK_FUNC(strcasecmp,
 AC_SUBST(GETRUSAGE)
 AC_SUBST(GETHOSTNAME)
 AC_SUBST(SRANDOM)
-AC_SUBST(RANDOM)
+AC_SUBST(MISSING_RANDOM)
 AC_SUBST(STRDUP)
 AC_SUBST(STRCASECMP)
 AC_SUBST(INET_ATON)