Loading...
Searching...
No Matches
coap_prng_internal.h
Go to the documentation of this file.
/*
* coap_prng_internal.h -- Pseudo Random Numbers
*
* Copyright (C) 2024 Olaf Bergmann <bergmann@tzi.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*
* This file is part of the CoAP library libcoap. Please see README for terms
* of use.
*/
#ifndef COAP_PRNG_INTERNAL_H_
#define COAP_PRNG_INTERNAL_H_
void coap_prng_init_lkd(unsigned int seed);
int coap_prng_lkd(void *buf, size_t len);
#endif /* COAP_PRNG_H_ */
coap_prng_init_lkd
void coap_prng_init_lkd(unsigned int seed)
Seeds the default random number generation function with the given seed.
Definition coap_prng.c:166
coap_prng_lkd
int coap_prng_lkd(void *buf, size_t len)
Fills buf with len random bytes using the default pseudo random number generator.
Definition coap_prng.c:178