nanomsg next generation NNG  
Home GitHub Documentation

This documentation is for version v1.2.2 of nng, but the latest released version is v1.2.5. see the documentation for v1.2.5 for the most up-to-date information.
nng_random(3supp)

SYNOPSIS

#include <nng/nng.h>
#include <nng/supplemental/util/platform.h>

uint32_t nng_random(void);

DESCRIPTION

The nng_random() returns a random number. The value returned is suitable for use with cryptographic functions such as key generation. The value is obtained using platform specific cryptographically strong random number facilities when available.

RETURN VALUES

Random number.

ERRORS

None.

SEE ALSO

NNG Reference Manual vv1.2.2 © 2019 Staysail Systems, Inc, © 2018 Capitar IT Group BV
This document is supplied under the MIT License.
nanomsg™ and nng™ are trademarks of Garrett D'Amore.