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

/PHP_TRUNK/ext/standard/
H A Dstring.c5436 zend_long n_elems, rnd_idx, n_left; local
5449 rnd_idx = php_rand();
5450 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
5451 if (rnd_idx != n_left) {
5453 str[n_left] = str[rnd_idx];
5454 str[rnd_idx] = temp;
H A Darray.c1846 zend_long rnd_idx; local
1870 rnd_idx = php_rand();
1871 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
1872 if (rnd_idx != n_left) {
1874 hash->arData[n_left] = hash->arData[rnd_idx];
1875 hash->arData[rnd_idx] = temp;
1896 rnd_idx = php_rand();
1897 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
1898 if (rnd_idx != n_left) {
1900 hash->arData[n_left] = hash->arData[rnd_idx];
[all...]

Completed in 14 milliseconds