Lines Matching refs:t
48 const uint64_t t = s->state[1] << 17; in generate_state() local
55 s->state[2] ^= t; in generate_state()
124 zval t; in serialize() local
127 ZVAL_STR(&t, php_random_bin2hex_le(&s->state[i], sizeof(uint64_t))); in serialize()
128 zend_hash_next_index_insert(data, &t); in serialize()
137 zval *t; in unserialize() local
145 t = zend_hash_index_find(data, i); in unserialize()
146 if (!t || Z_TYPE_P(t) != IS_STRING || Z_STRLEN_P(t) != (2 * sizeof(uint64_t))) { in unserialize()
149 if (!php_random_hex2bin_le(Z_STR_P(t), &s->state[i])) { in unserialize()
216 uint64_t t[4]; in PHP_METHOD() local
219 if (php_random_bytes_throw(&t, sizeof(t)) == FAILURE) { in PHP_METHOD()
223 } while (UNEXPECTED(t[0] == 0 && t[1] == 0 && t[2] == 0 && t[3] == 0)); in PHP_METHOD()
225 php_random_xoshiro256starstar_seed256(state, t[0], t[1], t[2], t[3]); in PHP_METHOD()
230 uint64_t t[4]; in PHP_METHOD() local
234 t[i] = 0; in PHP_METHOD()
236 t[i] += ((uint64_t) (unsigned char) ZSTR_VAL(str_seed)[(i * 8) + j]) << (j * 8); in PHP_METHOD()
240 if (UNEXPECTED(t[0] == 0 && t[1] == 0 && t[2] == 0 && t[3] == 0)) { in PHP_METHOD()
245 php_random_xoshiro256starstar_seed256(state, t[0], t[1], t[2], t[3]); in PHP_METHOD()