Lines Matching refs:read_bytes
102 size_t read_bytes = 0; in php_random_bytes()
107 while (read_bytes < size) { in php_random_bytes()
117 size_t amount_to_read = size - read_bytes; in php_random_bytes()
119 n = syscall(SYS_getrandom, bytes + read_bytes, amount_to_read, 0); in php_random_bytes()
121 n = getrandom(bytes + read_bytes, amount_to_read, 0); in php_random_bytes()
129 ZEND_ASSERT(read_bytes == 0); in php_random_bytes()
142 __msan_unpoison(bytes + read_bytes, n); in php_random_bytes()
144 read_bytes += (size_t) n; in php_random_bytes()
147 if (read_bytes < size) { in php_random_bytes()
178 for (read_bytes = 0; read_bytes < size; read_bytes += (size_t) n) { in php_random_bytes()
179 n = read(fd, bytes + read_bytes, size - read_bytes); in php_random_bytes()
185 if (read_bytes < size) { in php_random_bytes()