summaryrefslogtreecommitdiff
path: root/src/mongo/bson/oid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/bson/oid.cpp')
-rw-r--r--src/mongo/bson/oid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/bson/oid.cpp b/src/mongo/bson/oid.cpp
index a4d2d901e61..0f08d6c56b6 100644
--- a/src/mongo/bson/oid.cpp
+++ b/src/mongo/bson/oid.cpp
@@ -135,7 +135,7 @@ void OID::justForked() {
void OID::init() {
// each set* method handles endianness
- setTimestamp(time(0));
+ setTimestamp(time(nullptr));
setInstanceUnique(_instanceUnique);
setIncrement(Increment::next());
}