|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
Random Function APIs. More...
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 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. |
|
inlinestatic |
#include <zephyr/random/random.h>
Return a 16-bit random value that should pass general randomness tests.
|
inlinestatic |
#include <zephyr/random/random.h>
Return a 32-bit random value that should pass general randomness tests.
|
inlinestatic |
#include <zephyr/random/random.h>
Return a 64-bit random value that should pass general randomness tests.
|
inlinestatic |
#include <zephyr/random/random.h>
Return a 8-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. |