]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
[CORE] Use random_bytes() if available and improve common_confirmation_code() randomness.
authorDiogo Cordeiro <diogo@fc.up.pt>
Sat, 22 Jun 2019 17:57:43 +0000 (18:57 +0100)
committerDiogo Cordeiro <diogo@fc.up.pt>
Sat, 3 Aug 2019 16:29:14 +0000 (17:29 +0100)
commitd705bcbd98ed9d7f69214c32f2e650ccca6a1589
tree18defd29c6db876fe829d57f9005f0a611c3df7d
parentf0f5ecb7561d4bf3344734b03791e57b534d9cc9
[CORE] Use random_bytes() if available and improve common_confirmation_code() randomness.
With PHP 7 comes the [random_bytes()](https://php.net/manual/en/function.random-bytes.php) and the [random_int()](https://www.php.net/manual/en/function.random-int.php) function which generates cryptographically secure pseudo-random bytes and integers, respectively.
lib/framework.php
lib/util.php