Skip to content

Commit 1d64b4c

Browse files
committed
avoid needless function call
1 parent a989091 commit 1d64b4c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/standard/array.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2398,7 +2398,6 @@ static void php_array_data_shuffle(zval *array) /* {{{ */
23982398
}
23992399
}
24002400
while (--n_left) {
2401-
rnd_idx = php_rand();
24022401
RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
24032402
if (rnd_idx != n_left) {
24042403
temp = hash->arData[n_left];
@@ -2424,7 +2423,6 @@ static void php_array_data_shuffle(zval *array) /* {{{ */
24242423
}
24252424
}
24262425
while (--n_left) {
2427-
rnd_idx = php_rand();
24282426
RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
24292427
if (rnd_idx != n_left) {
24302428
temp = hash->arData[n_left];

0 commit comments

Comments
 (0)