summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/platform/random.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/platform/random.cpp b/src/mongo/platform/random.cpp
index 2281fd31653..ef4a0f741fc 100644
--- a/src/mongo/platform/random.cpp
+++ b/src/mongo/platform/random.cpp
@@ -22,6 +22,7 @@
#ifndef _WIN32
#include <errno.h>
+#define _CRT_RAND_S
#endif
#include <cstdlib>