OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:random_fd
(Results
1 - 3
of
3
) sorted by null
/device/moto/shamu/qrngd/
qrngd.c
308
int
random_fd
= 0; /* output file descriptor */
local
348
random_fd
= open(user_ops.output_device_name, O_RDWR);
349
if (
random_fd
< 0) {
365
fds[0].fd =
random_fd
;
418
if (ioctl(
random_fd
, RNDGETENTCNT, &ent_count) != 0) {
437
if (ioctl(
random_fd
, RNDADDENTROPY, rand) < 0) {
456
if (
random_fd
)
457
close(
random_fd
);
/external/wpa_supplicant_8/src/crypto/
random.c
52
static int
random_fd
= -1;
variable
298
if (
random_fd
>= 0) {
299
eloop_unregister_read_sock(
random_fd
);
300
close(
random_fd
);
301
random_fd
= -1;
415
if (
random_fd
>= 0)
418
random_fd
= open("/dev/random", O_RDONLY | O_NONBLOCK);
419
if (
random_fd
< 0) {
431
eloop_register_read_sock(
random_fd
, random_read_fd, NULL, NULL);
/system/extras/verity/
build_verity_tree.cpp
202
int
random_fd
= open("/dev/urandom", O_RDONLY);
local
203
if (
random_fd
< 0) {
207
ssize_t ret = read(
random_fd
, salt, salt_size);
211
close(
random_fd
);
Completed in 72 milliseconds