1 #ifndef _IPXE_LINUX_ENTROPY_H
2 #define _IPXE_LINUX_ENTROPY_H
6 * /dev/random-based entropy source
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
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 /* linux_get_noise() reads a single byte from /dev/random,
27 * which is supposed to block until a sufficient amount of
28 * entropy is available. We therefore assume that each sample
29 * contains exactly 8 bits of entropy.
34 #endif /* _IPXE_LINUX_ENTROPY_H */