Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/random.h
Show All 34 Lines | |||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
struct uio; | struct uio; | ||||
#if defined(DEV_RANDOM) | #if defined(DEV_RANDOM) | ||||
void read_random(void *, u_int); | void read_random(void *, u_int); | ||||
int read_random_uio(struct uio *, bool); | int read_random_uio(struct uio *, bool); | ||||
bool is_random_seeded(void); | |||||
#else | #else | ||||
static __inline int | static __inline int | ||||
read_random_uio(void *a __unused, u_int b __unused) | read_random_uio(void *a __unused, u_int b __unused) | ||||
{ | { | ||||
return (0); | return (0); | ||||
} | } | ||||
static __inline void | static __inline void | ||||
read_random(void *a __unused, u_int b __unused) | read_random(void *a __unused, u_int b __unused) | ||||
{ | { | ||||
} | |||||
static __inline bool | |||||
is_random_seeded(void) | |||||
{ | |||||
return (false); | |||||
} | } | ||||
#endif | #endif | ||||
/* | /* | ||||
* Note: if you add or remove members of random_entropy_source, remember to | * Note: if you add or remove members of random_entropy_source, remember to | ||||
* also update the strings in the static array random_source_descr[] in | * also update the strings in the static array random_source_descr[] in | ||||
* random_harvestq.c. | * random_harvestq.c. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |