Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VarDumper] fix side-effect by not using mt_rand() #36121

Merged
merged 1 commit into from Mar 18, 2020

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

Reported by @bobthecow on Twitter: using mt_rand() breaks inspecting seeded calls to mt_rand().

Should be replaced by a call to md5(random_bytes(6)) on 4.4.

@fabpot
Copy link
Member

fabpot commented Mar 18, 2020

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 5f364af into symfony:3.4 Mar 18, 2020
@bobthecow
Copy link
Contributor

Thanks for the quick fix, @nicolas-grekas!

@fabpot fabpot mentioned this pull request Mar 27, 2020
@nicolas-grekas nicolas-grekas deleted the vd-mt_rand branch March 27, 2020 09:02
This was referenced Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants