bson_oid_init_sequence() — libbson 1.9.2

- libbson 1.9.2 »
- API Reference »
- bson_oid_t

# bson_oid_init_sequence()

## Synopsis

    void
    bson_oid_init_sequence (bson_oid_t *oid, bson_context_t *context);

## Parameters

- `oid`: A bson_oid_t.
- `context`: An optional bson_context_t.

## Description

Generates a new ObjectID using the 64-bit sequence.

Warning

This form of ObjectID is generally used by MongoDB replica peers only.

Created using Sphinx 1.6.5, based on Sphinx Readable Theme.