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

/PHP_5_5/ext/standard/
H A Darray.c1742 int j, n_elems, rnd_idx, n_left; local
1757 rnd_idx = php_rand(TSRMLS_C);
1758 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
1759 if (rnd_idx != n_left) {
1761 elems[n_left] = elems[rnd_idx];
1762 elems[rnd_idx] = temp;
H A Dstring.c5363 long n_elems, rnd_idx, n_left; local
5376 rnd_idx = php_rand(TSRMLS_C);
5377 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
5378 if (rnd_idx != n_left) {
5380 str[n_left] = str[rnd_idx];
5381 str[rnd_idx] = temp;

Completed in 17 milliseconds