libcoap  4.3.0rc1
coap_prng.c File Reference
#include "coap2/coap_internal.h"
#include <stdlib.h>
+ Include dependency graph for coap_prng.c:

Go to the source code of this file.


static int coap_prng_default (void *buf, size_t len)
void coap_set_prng (coap_rand_func_t rng)
 Replaces the current random number generation function with the default function rng. More...
void coap_prng_init (unsigned int seed)
 Seeds the default random number generation function with the given seed. More...
int coap_prng (void *buf, size_t len)
 Fills buf with len random bytes using the default pseudo random number generator. More...


static coap_rand_func_t rand_func = coap_prng_default

Function Documentation

◆ coap_prng_default()

static int coap_prng_default ( void *  buf,
size_t  len 

Definition at line 45 of file coap_prng.c.

Variable Documentation

◆ rand_func

coap_rand_func_t rand_func = coap_prng_default

Definition at line 60 of file coap_prng.c.