Lines Matching refs:got
81 ssize_t got = getrandom(buf, buflen, 0); in qcrypto_random_bytes()
82 if (likely(got == buflen)) { in qcrypto_random_bytes()
85 if (got >= 0) { in qcrypto_random_bytes()
86 buflen -= got; in qcrypto_random_bytes()
87 buf += got; in qcrypto_random_bytes()
97 ssize_t got = read(fd, buf, buflen); in qcrypto_random_bytes()
98 if (likely(got == buflen)) { in qcrypto_random_bytes()
101 if (got > 0) { in qcrypto_random_bytes()
102 buflen -= got; in qcrypto_random_bytes()
103 buf += got; in qcrypto_random_bytes()
104 } else if (got == 0) { in qcrypto_random_bytes()