Zephyr API Documentation
3.5.0
A Scalable Open Source RTOS
|
|
3.5.0 |
Random number generator header file. More...
#include <zephyr/types.h>
#include <stddef.h>
#include <zephyr/kernel.h>
#include <syscalls/random.h>
Go to the source code of this file.
Functions | |
uint32_t | sys_rand32_get (void) |
Return a 32-bit random value that should pass general randomness tests. | |
void | sys_rand_get (void *dst, size_t len) |
Fill the destination buffer with random data values that should pass general randomness tests. | |
int | sys_csrand_get (void *dst, size_t len) |
Fill the destination buffer with cryptographically secure random data values. | |
Random number generator header file.
This header file declares prototypes for the kernel's random number generator APIs.
Typically, a platform enables the appropriate source for the random number generation based on the hardware platform's capabilities or (for testing purposes only) enables the TEST_RANDOM_GENERATOR configuration option.