1 /*
2  * SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef __SYS_RANDOM__
8 #define __SYS_RANDOM__
9 
10 #include <sys/types.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 ssize_t getrandom(void *buf, size_t buflen, unsigned int flags);
17 
18 #ifdef __cplusplus
19 } // extern "C"
20 #endif
21 
22 #endif //__SYS_RANDOM__
23