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

/PHP_TRUNK/ext/standard/
H A Darray.c1901 zend_long rnd_idx; local
1925 rnd_idx = php_rand();
1926 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
1927 if (rnd_idx != n_left) {
1929 hash->arData[n_left] = hash->arData[rnd_idx];
1930 hash->arData[rnd_idx] = temp;
1951 rnd_idx = php_rand();
1952 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
1953 if (rnd_idx != n_left) {
1955 hash->arData[n_left] = hash->arData[rnd_idx];
[all...]
H A Dstring.c5426 zend_long n_elems, rnd_idx, n_left; local
5439 rnd_idx = php_rand();
5440 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
5441 if (rnd_idx != n_left) {
5443 str[n_left] = str[rnd_idx];
5444 str[rnd_idx] = temp;

Completed in 23 milliseconds