diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-10-06 19:49:26 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-10-06 19:49:26 -0700 |
| commit | 91995975521849a7a35921f7bbc25397eed78d52 (patch) | |
| tree | dcfea5fe94c403f2455020a41fe9be2dc8d3e854 /docs/ref/api/util/nng_random.md | |
| parent | 964132c807f594be79fd2ca4868a8da9e3817f28 (diff) | |
| download | nng-91995975521849a7a35921f7bbc25397eed78d52.tar.gz nng-91995975521849a7a35921f7bbc25397eed78d52.tar.bz2 nng-91995975521849a7a35921f7bbc25397eed78d52.zip | |
Convert nng_random to new format.
Diffstat (limited to 'docs/ref/api/util/nng_random.md')
| -rw-r--r-- | docs/ref/api/util/nng_random.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/ref/api/util/nng_random.md b/docs/ref/api/util/nng_random.md new file mode 100644 index 00000000..160752ab --- /dev/null +++ b/docs/ref/api/util/nng_random.md @@ -0,0 +1,25 @@ +# nng_random + +## NAME + +nng_random --- get random number + +## SYNOPSIS + +```c +#include <nng/nng.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 + +Returns a random 32-bit value. |
