We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c9fedc commit 5d177c1Copy full SHA for 5d177c1
ext/random/random.c
@@ -524,9 +524,8 @@ PHP_FUNCTION(mt_srand)
524
PHP_FUNCTION(mt_rand)
525
{
526
zend_long min, max;
527
- int argc = ZEND_NUM_ARGS();
528
529
- if (argc == 0) {
+ if (ZEND_NUM_ARGS() == 0) {
530
/* genrand_int31 in mt19937ar.c performs a right shift */
531
RETURN_LONG(php_mt_rand() >> 1);
532
}
@@ -562,9 +561,8 @@ PHP_FUNCTION(mt_getrandmax)
562
561
PHP_FUNCTION(rand)
563
564
565
566
567
568
569
570
0 commit comments