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

/PHP_TRUNK/ext/standard/
H A Darray.c1878 zend_long rnd_idx; local
1902 rnd_idx = php_rand();
1903 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
1904 if (rnd_idx != n_left) {
1906 hash->arData[n_left] = hash->arData[rnd_idx];
1907 hash->arData[rnd_idx] = temp;
1928 rnd_idx = php_rand();
1929 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
1930 if (rnd_idx != n_left) {
1932 hash->arData[n_left] = hash->arData[rnd_idx];
[all...]
H A Dstring.c5489 zend_long n_elems, rnd_idx, n_left; local
5502 rnd_idx = php_rand();
5503 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
5504 if (rnd_idx != n_left) {
5506 str[n_left] = str[rnd_idx];
5507 str[rnd_idx] = temp;

Completed in 14 milliseconds