Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

pierredup
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
BC breaks? yes
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

Remove the Symfony\Component\Security\Core\Util\SecureRandom class and use the random_bytes function instead. Also include the paragonie/random_compat library for non PHP 7 installs

Note This PR depends on #15879 to be merged first

@stof
Copy link
Member

stof commented Sep 24, 2015

We cannot remove it from the master branch without deprecating it first in 2.8 according to our policy. Otherwise it makes the upgrade to 3.0 painful

@pierredup
Copy link
Contributor Author

@stof the deprecation PR is pending here #15879

@stof
Copy link
Member

stof commented Sep 24, 2015

Which means this PR should not exist yet (merging the deprecation PR will make this PR unmergeable because of conflicts)

@pierredup
Copy link
Contributor Author

I'll fix the conflicts when the deprecation PR is merged, I also updated the description to say that this is dependant on the deprecation PR to be merged first.
Having this PR open already means I can get quicker feedback and fix any issues without having to wait for the other PR's to be merged first and then only start with the removal.

@stof
Copy link
Member

stof commented Sep 24, 2015

@pierredup most of the work done in this PR would become unnecessary once the deprecation PR is implemented the proper way though. The PR would just remove the class, the secure_random service and the tests for the class. So getting feedback on the current state of this PR is useless.

@pierredup
Copy link
Contributor Author

Okay makes sense, I'll close this for now

@pierredup pierredup closed this Sep 24, 2015
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.

3 participants