Zephyr API Documentation
3.5.0
A Scalable Open Source RTOS
|
|
3.5.0 |
Random Function APIs. More...
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 Function APIs.
int sys_csrand_get | ( | void * | dst, |
size_t | len | ||
) |
#include <zephyr/random/random.h>
Fill the destination buffer with cryptographically secure random data values.
[out] | dst | destination buffer to fill. |
len | size of the destination buffer. |
uint32_t sys_rand32_get | ( | void | ) |
#include <zephyr/random/random.h>
Return a 32-bit random value that should pass general randomness tests.
void sys_rand_get | ( | void * | dst, |
size_t | len | ||
) |
#include <zephyr/random/random.h>
Fill the destination buffer with random data values that should pass general randomness tests.
[out] | dst | destination buffer to fill with random data. |
len | size of the destination buffer. |