summaryrefslogtreecommitdiff
path: root/db/nonce.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/nonce.cpp')
-rw-r--r--db/nonce.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/nonce.cpp b/db/nonce.cpp
index c58195baf8f..da38f217aef 100644
--- a/db/nonce.cpp
+++ b/db/nonce.cpp
@@ -34,8 +34,10 @@ namespace mongo {
#endif
assert( sizeof(nonce) == 8 );
+#ifndef NDEBUG
if ( do_md5_test() )
- massert("md5 unit test fails", false);
+ massert("md5 unit test fails", false);
+#endif
}
nonce Security::getNonce(){