|
libcoap 4.3.5
|
Internal API for generating pseudo random numbers. More...
Collaboration diagram for Pseudo Random Numbers:Functions | |
| void | coap_prng_init_lkd (unsigned int seed) |
Seeds the default random number generation function with the given seed. | |
| int | coap_prng_lkd (void *buf, size_t len) |
Fills buf with len random bytes using the default pseudo random number generator. | |
Internal API for generating pseudo random numbers.
| void coap_prng_init_lkd | ( | unsigned int | seed | ) |
Seeds the default random number generation function with the given seed.
The default random number generation function will use getrandom() if available, ignoring the seed.
| seed | The seed for the pseudo random number generator. |
Definition at line 166 of file coap_prng.c.
Here is the caller graph for this function:| int coap_prng_lkd | ( | void * | buf, |
| size_t | len | ||
| ) |
Fills buf with len random bytes using the default pseudo random number generator.
The default PRNG can be changed with coap_set_prng(). This function returns 1 when len random bytes have been written to buf, zero otherwise.
| buf | The buffer to fill with random bytes. |
| len | The number of random bytes to write into buf. |
Definition at line 178 of file coap_prng.c.
Here is the caller graph for this function: