Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
Random number generator header file. More...
#include <zephyr/types.h>
#include <stddef.h>
#include <zephyr/kernel.h>
#include <zephyr/syscalls/random.h>
Go to the source code of this file.
Functions | |
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. | |
static uint8_t | sys_rand8_get (void) |
Return a 8-bit random value that should pass general randomness tests. | |
static uint16_t | sys_rand16_get (void) |
Return a 16-bit random value that should pass general randomness tests. | |
static uint32_t | sys_rand32_get (void) |
Return a 32-bit random value that should pass general randomness tests. | |
static uint64_t | sys_rand64_get (void) |
Return a 64-bit random value that should pass general randomness tests. | |
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.