SYNOPSIS

#include <bson.h>

uint32_t
bson_oid_hash (const bson_oid_t *oid);

DESCRIPTION

The bson_oid_hash() function shall generate a 32-bit hash that is suitable for use within a hash table.

The hash is a variant of DJB hash.

RETURN VALUE

A 32-bit hash code suitable for use within hash-tables.

ERRORS

No errors are defined.

SEE ALSO

AUTHORS

This page was written by MongoDB, Inc.