bson_oid_gen() is not thread-safe.
It uses static 'incr' integer variable to increment. When enough threads accessing the method, the returned oid will be the same as returned just previously.
bson_oid_gen() is not thread-safe.
It uses static 'incr' integer variable to increment. When enough threads accessing the method, the returned oid will be the same as returned just previously.