Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/random/random_infra.c
Show First 20 Lines • Show All 192 Lines • ▼ Show 20 Lines | read_random(void *buf, u_int len) | ||||
RANDOM_CONFIG_S_LOCK(); | RANDOM_CONFIG_S_LOCK(); | ||||
random_reader_context.read_random(buf, len); | random_reader_context.read_random(buf, len); | ||||
RANDOM_CONFIG_S_UNLOCK(); | RANDOM_CONFIG_S_UNLOCK(); | ||||
} | } | ||||
bool | bool | ||||
is_random_seeded(void) | is_random_seeded(void) | ||||
{ | { | ||||
bool result; | |||||
RANDOM_CONFIG_S_LOCK(); | RANDOM_CONFIG_S_LOCK(); | ||||
random_reader_context.is_random_seeded(); | result = random_reader_context.is_random_seeded(); | ||||
RANDOM_CONFIG_S_UNLOCK(); | RANDOM_CONFIG_S_UNLOCK(); | ||||
return (result); | |||||
} | } | ||||
#endif /* defined(RANDOM_LOADABLE) */ | #endif /* defined(RANDOM_LOADABLE) */ |