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 e332817 commit b43bfd8Copy full SHA for b43bfd8
ext/random/random.c
@@ -525,9 +525,8 @@ PHP_FUNCTION(mt_srand)
525
PHP_FUNCTION(mt_rand)
526
{
527
zend_long min, max;
528
- int argc = ZEND_NUM_ARGS();
529
530
- if (argc == 0) {
+ if (ZEND_NUM_ARGS() == 0) {
531
/* genrand_int31 in mt19937ar.c performs a right shift */
532
RETURN_LONG(php_mt_rand() >> 1);
533
}
@@ -563,9 +562,8 @@ PHP_FUNCTION(mt_getrandmax)
563
562
PHP_FUNCTION(rand)
564
565
566
567
568
569
570
571
0 commit comments