summaryrefslogtreecommitdiff
path: root/register.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-01-23 22:04:01 +0400
committerAndrew Dolgov <[email protected]>2012-01-23 22:04:01 +0400
commit8db5d8ea6d38df8a18e8290753b1b29f76bcf962 (patch)
tree55e32ea2f0b6889c37cae930f77c401c3ea0b40e /register.php
parent098df83ba6a5fb7ea03cb9dfc9f6eca82397fe27 (diff)
add get_random_bytes() in case openssl_random_pseudo_bytes() is unavailable
Diffstat (limited to 'register.php')
-rw-r--r--register.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/register.php b/register.php
index e75c1c94c..97cea47cb 100644
--- a/register.php
+++ b/register.php
@@ -270,7 +270,7 @@
$password = make_password();
- $salt = substr(bin2hex(openssl_random_pseudo_bytes(125)), 0, 250);
+ $salt = substr(bin2hex(get_random_bytes(125)), 0, 250);
$pwd_hash = encrypt_password($password, $salt, true);
db_query($link, "INSERT INTO ttrss_users