Now, I am using mongodb c driver to insert documents to mongodb. Each time, I used the following codes to generate an _id.
bson_oid_init (&oid, NULL);
BSON_APPEND_OID (doc, "_id", &oid);
If multiple applications run the above codes at the same time, will bson_oid_init (&oid, NULL) generate the same two _id with some probability?