You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
random_bytes() is only for PHP 7 right? SecureRandom also is a good choice.
IMHO, a better way could be to create an interface (let say RandomStringGenerator) and modify the libary to rely on this interface.Then let developpers decide the generator they want to use.
If no generator is set, the default one is used.
What about using Symfony’s
SecureRandom
orrandom_bytes()
to generate tokens?The text was updated successfully, but these errors were encountered: