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

# mongoc\_rand\_add(3)

## SYNOPSIS

```
void
mongoc_rand_add (const void *buf, int num, double entropy);
```

## DESCRIPTION

Mixes num bytes of data into the mongoc random number generator.  Entropy specifies a lower bound estimate of the randomness contained in buf.

## PARAMETERS

- •

  **buf**: A buffer.

- •

  **num**: An int of number of bytes in buf.

- •

  **entropy**: A double of randomness estimate in buf.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
