|
libnx v4.9.0
|
OS-seeded pseudo-random number generation support (ChaCha algorithm). More...
#include "../types.h"Go to the source code of this file.
Functions | |
| void | randomGet (void *buf, size_t len) |
| Fills a buffer with random data. | |
| u64 | randomGet64 (void) |
| Returns a random 64-bit value. | |
OS-seeded pseudo-random number generation support (ChaCha algorithm).
| void randomGet | ( | void * | buf, |
| size_t | len | ||
| ) |
Fills a buffer with random data.
| buf | Pointer to the buffer. |
| len | Size of the buffer in bytes. |
| u64 randomGet64 | ( | void | ) |
Returns a random 64-bit value.