![]() |
nRF Connect SDK API 3.4.99
|
| int cracen_get_rnd_in_range | ( | const uint8_t * | n, |
| size_t | nsz, | ||
| uint8_t * | out ) |
#include <common.h>
Generate a random number within the specified range.
| [in] | n | Pointer to a buffer holding the upper limit of the random range. The upper limit must be a non-zero odd number. |
| [in] | nsz | Size of the upper limit buffer in bytes. |
| [out] | out | Buffer to store the generated random number. The size of out should be at least nsz. |