Skip to content

[13.x] update rand() to mt_rand()#60018

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
browner12:AB-rand-to-mt-rand
May 6, 2026
Merged

[13.x] update rand() to mt_rand()#60018
taylorotwell merged 1 commit into
laravel:13.xfrom
browner12:AB-rand-to-mt-rand

Conversation

@browner12
Copy link
Copy Markdown
Contributor

as of v7.1 rand() has been aliased to mt_rand().

we get a present, but mostly insignificant, performance bump from switching, but the big benefit is consistency in the codebase.

as of v7.1 `rand()` has been aliased to `mt_rand()`.

we get a present, but mostly insignificant, performance bump from switching, but the big benefit is consistency in the codebase.
@browner12
Copy link
Copy Markdown
Contributor Author

alternate to #60016

@taylorotwell taylorotwell merged commit 46a281e into laravel:13.x May 6, 2026
54 checks passed
@browner12 browner12 deleted the AB-rand-to-mt-rand branch May 6, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants