git.iko.soy/typeable/entropy
on 2f047cf help sign in
12 lines 259 B history raw
1#ifndef rdrand_h
2#ifdef HAVE_RDRAND
3#include <stdint.h>
5#ifdef arch_x86_64
6int cpu_has_rdrand()
8// Returns 0 on success, non-zero on failure.
9int get_rand_bytes(uint8_t *therand, size_t len)
10#endif /* arch_x86_64 */
11#endif // HAVE_RDRAND
12#endif // rdrand_h