---
name: "bson_oid_hash"
section: "3"
platform: "linux"
package: "libbson-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/bson_oid_hash"
---

# bson\_oid\_hash(3)

## SYNOPSIS

```
uint32_t
bson_oid_hash (const bson_oid_t *oid);
```

## PARAMETERS

- •

  **oid**: A *bson\_oid\_t*.

## DESCRIPTION

Generates a hash code for **oid** suitable for a hashtable.

## RETURNS

A 32-bit hash code.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
