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

/PHP_TRUNK/ext/standard/
H A Dstring.c5341 long n_elems, rnd_idx, n_left; local
5354 rnd_idx = php_rand(TSRMLS_C);
5355 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
5356 if (rnd_idx != n_left) {
5358 str[n_left] = str[rnd_idx];
5359 str[rnd_idx] = temp;
H A Darray.c1752 int j, n_elems, rnd_idx, n_left; local
1767 rnd_idx = php_rand(TSRMLS_C);
1768 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
1769 if (rnd_idx != n_left) {
1771 elems[n_left] = elems[rnd_idx];
1772 elems[rnd_idx] = temp;

Completed in 22 milliseconds