Lines Matching refs:read_bytes
117 size_t read_bytes = 0; in php_random_bytes()
122 while (read_bytes < size) { in php_random_bytes()
132 size_t amount_to_read = size - read_bytes; in php_random_bytes()
134 n = syscall(SYS_getrandom, bytes + read_bytes, amount_to_read, 0); in php_random_bytes()
136 n = getrandom(bytes + read_bytes, amount_to_read, 0); in php_random_bytes()
144 ZEND_ASSERT(read_bytes == 0); in php_random_bytes()
157 __msan_unpoison(bytes + read_bytes, n); in php_random_bytes()
159 read_bytes += (size_t) n; in php_random_bytes()
162 if (read_bytes < size) { in php_random_bytes()
193 for (read_bytes = 0; read_bytes < size; read_bytes += (size_t) n) { in php_random_bytes()
194 n = read(fd, bytes + read_bytes, size - read_bytes); in php_random_bytes()
200 if (read_bytes < size) { in php_random_bytes()