Searched refs:rnd_idx (Results 1 - 2 of 2) sorted by relevance

/PHP_TRUNK/ext/standard/
H A Darray.c1793 zend_long rnd_idx, n_left; local
1815 rnd_idx = php_rand();
1816 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
1817 if (rnd_idx != n_left) {
1819 hash->arData[n_left] = hash->arData[rnd_idx];
1820 hash->arData[rnd_idx] = temp;
H A Dstring.c5168 zend_long n_elems, rnd_idx, n_left; local
5181 rnd_idx = php_rand();
5182 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
5183 if (rnd_idx != n_left) {
5185 str[n_left] = str[rnd_idx];
5186 str[rnd_idx] = temp;

Completed in 16 milliseconds