We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Since version 7, PHP provides a cryptographically secure random bytes generators with random_bytes(). It should replace the current homecooking we are doing in https://github.com/friendica/friendica/blob/develop/include/text.php#L51
random_bytes()
Additionally, we can use the following polyfill for PHP < 7 and >= 5.4 : https://github.com/paragonie/random_compat
Related to #3942
The text was updated successfully, but these errors were encountered:
As long as this function can generate random strings of a given length, I totally support this.
Sorry, something went wrong.
Sure it can, it’s its only parameter!
http://php.net/manual/en/function.random-bytes.php
MrPetovan
No branches or pull requests
Since version 7, PHP provides a cryptographically secure random bytes generators with
random_bytes()
. It should replace the current homecooking we are doing in https://github.com/friendica/friendica/blob/develop/include/text.php#L51Additionally, we can use the following polyfill for PHP < 7 and >= 5.4 : https://github.com/paragonie/random_compat
Related to #3942
The text was updated successfully, but these errors were encountered: