Skip to content

Commit 97aac51

Browse files
committed
ext/random: mark rand() as an alias of mt_rand()
1 parent 04bf2e5 commit 97aac51

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

ext/random/random.stub.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ function mt_srand(?int $seed = null, int $mode = MT_RAND_MT19937): void {}
2323
/** @alias mt_srand */
2424
function srand(?int $seed = null, int $mode = MT_RAND_MT19937): void {}
2525

26-
function rand(int $min = UNKNOWN, int $max = UNKNOWN): int {}
27-
2826
function mt_rand(int $min = UNKNOWN, int $max = UNKNOWN): int {}
2927

28+
/* @alias mt_rand */
29+
function rand(int $min = UNKNOWN, int $max = UNKNOWN): int {}
30+
3031
/** @compile-time-eval */
3132
function mt_getrandmax(): int {}
3233

ext/random/random_arginfo.h

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)