libcoap 4.3.5-develop-ea01661
Loading...
Searching...
No Matches
coap_prng_internal.h
Go to the documentation of this file.
1/*
2 * coap_prng_internal.h -- Pseudo Random Numbers
3 *
4 * Copyright (C) 2024-2025 Olaf Bergmann <bergmann@tzi.org>
5 *
6 * SPDX-License-Identifier: BSD-2-Clause
7 *
8 * This file is part of the CoAP library libcoap. Please see README for terms
9 * of use.
10 */
11
17#ifndef COAP_PRNG_INTERNAL_H_
18#define COAP_PRNG_INTERNAL_H_
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
38void coap_prng_init_lkd(unsigned int seed);
39
51int coap_prng_lkd(void *buf, size_t len);
52
53#ifdef __cplusplus
54}
55#endif
56
59#endif /* COAP_PRNG_H_ */
void coap_prng_init_lkd(unsigned int seed)
Seeds the default random number generation function with the given seed.
Definition coap_prng.c:178
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:190