summaryrefslogtreecommitdiff
path: root/src/mongo/platform/random.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-03-11 16:23:24 -0400
committerAndrew Morrow <acm@mongodb.com>2015-03-11 18:57:20 -0400
commit17a7f0eedd286a19a5027c02efc358b39ccc8d84 (patch)
tree5f93c28965f1e19867bb36c721d09609dd97cb1b /src/mongo/platform/random.cpp
parentb4f647796a0c37fbb95d71aa9ee9b63fcbfcb782 (diff)
downloadmongo-17a7f0eedd286a19a5027c02efc358b39ccc8d84.tar.gz
SERVER-17552 Use correct OS detection macros, rather than our own
Diffstat (limited to 'src/mongo/platform/random.cpp')
-rw-r--r--src/mongo/platform/random.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/platform/random.cpp b/src/mongo/platform/random.cpp
index e00fab107ca..dcbd6f66ffc 100644
--- a/src/mongo/platform/random.cpp
+++ b/src/mongo/platform/random.cpp
@@ -117,7 +117,7 @@ namespace mongo {
return new WinSecureRandom();
}
-#elif defined(__linux__) || defined(__sunos__) || defined(__APPLE__) || defined(__freebsd__)
+#elif defined(__linux__) || defined(__sun) || defined(__APPLE__) || defined(__FreeBSD__)
class InputStreamSecureRandom : public SecureRandom {
public:
@@ -150,7 +150,7 @@ namespace mongo {
return new InputStreamSecureRandom( "/dev/urandom" );
}
-#elif defined(__openbsd__)
+#elif defined(__OpenBSD__)
class Arc4SecureRandom : public SecureRandom {
public: