mongoc_rand_seed(3)

MONGOC_RAND_SEED(3) libmongoc MONGOC_RAND_SEED(3)

SYNOPSIS

void
mongoc_rand_seed (const void *buf, int num);


DESCRIPTION

Seeds the mongoc random number generator with num bytes of entropy.

PARAMETERS

  • buf: A buffer.
  • num: An int of number of bytes in buf.

Author

MongoDB, Inc

Copyright

2009-present, MongoDB, Inc.

February 10, 2026 1.30.7