wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
random.h
Go to the documentation of this file.
1 
5 #ifndef RANDOM_H
6 #define RANDOM_H
7 
8 #ifdef CONFIG_NO_RANDOM_POOL
9 #define random_init(e) do { } while (0)
10 #define random_deinit() do { } while (0)
11 #define random_add_randomness(b, l) do { } while (0)
12 #define random_get_bytes(b, l) os_get_random((b), (l))
13 #define random_pool_ready() 1
14 #define random_mark_pool_ready() do { } while (0)
15 #else /* CONFIG_NO_RANDOM_POOL */
16 void random_init(const char *entropy_file);
17 void random_deinit(void);
18 void random_add_randomness(const void *buf, size_t len);
19 int random_get_bytes(void *buf, size_t len);
20 int random_pool_ready(void);
21 void random_mark_pool_ready(void);
22 #endif /* CONFIG_NO_RANDOM_POOL */
23 
24 #endif /* RANDOM_H */