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

/PHP_5_5/ext/standard/
H A Dstring.c5346 long n_elems, rnd_idx, n_left; local
5356 n_left = n_elems;
5358 while (--n_left) {
5360 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
5361 if (rnd_idx != n_left) {
5362 temp = str[n_left];
5363 str[n_left] = str[rnd_idx];
H A Darray.c1742 int j, n_elems, rnd_idx, n_left; local
1752 n_left = n_elems;
1756 while (--n_left) {
1758 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
1759 if (rnd_idx != n_left) {
1760 temp = elems[n_left];
1761 elems[n_left] = elems[rnd_idx];

Completed in 17 milliseconds