SecureRandom documentation does not cover a common use case #4328
Labels
actionable
Clear and specific issues ready for anyone to take them.
good first issue
Ideal for your first contribution! (some Symfony experience may be required)
hasPR
A Pull Request has already been submitted for this issue.
Security
As I understand it, if you're trying to generate a token for something which you plan to store in the database then you need to hash the result of nextBytes. It would be handy if the docs mentioned this in:
http://symfony.com/doc/master/book/security.html#generating-a-secure-random-number
The text was updated successfully, but these errors were encountered: