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

/PHP_TRUNK/ext/standard/
H A Darray.c1830 zend_long rnd_idx; local
1854 rnd_idx = php_rand();
1855 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
1856 if (rnd_idx != n_left) {
1858 hash->arData[n_left] = hash->arData[rnd_idx];
1859 hash->arData[rnd_idx] = temp;
1880 rnd_idx = php_rand();
1881 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
1882 if (rnd_idx != n_left) {
1884 hash->arData[n_left] = hash->arData[rnd_idx];
[all...]
H A Dstring.c5431 zend_long n_elems, rnd_idx, n_left; local
5444 rnd_idx = php_rand();
5445 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
5446 if (rnd_idx != n_left) {
5448 str[n_left] = str[rnd_idx];
5449 str[rnd_idx] = temp;

Completed in 14 milliseconds