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

/PHP_TRUNK/ext/standard/
H A Dstring.c5442 zend_long n_elems, rnd_idx, n_left; local
5455 rnd_idx = php_rand();
5456 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
5457 if (rnd_idx != n_left) {
5459 str[n_left] = str[rnd_idx];
5460 str[rnd_idx] = temp;
H A Darray.c1873 zend_long rnd_idx; local
1897 rnd_idx = php_rand();
1898 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
1899 if (rnd_idx != n_left) {
1901 hash->arData[n_left] = hash->arData[rnd_idx];
1902 hash->arData[rnd_idx] = temp;
1923 rnd_idx = php_rand();
1924 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
1925 if (rnd_idx != n_left) {
1927 hash->arData[n_left] = hash->arData[rnd_idx];
[all...]

Completed in 14 milliseconds