1 #ifndef _IPXE_LINUX_ENTROPY_H
2 #define _IPXE_LINUX_ENTROPY_H
6 * iPXE entropy API for linux
10 FILE_LICENCE(GPL2_OR_LATER);
13 #define ENTROPY_PREFIX_linux
15 #define ENTROPY_PREFIX_linux __linux_
19 * min-entropy per sample
21 * @ret min_entropy min-entropy of each sample
23 static inline __always_inline double
24 ENTROPY_INLINE ( linux, min_entropy_per_sample ) ( void ) {
26 /* We read single bytes from /dev/random and assume that each
27 * contains full entropy.
32 #endif /* _IPXE_LINUX_ENTROPY_H */