summaryrefslogtreecommitdiff
path: root/classes/pref_prefs.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/pref_prefs.php')
-rw-r--r--classes/pref_prefs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/pref_prefs.php b/classes/pref_prefs.php
index 175566d8c..57971ccb1 100644
--- a/classes/pref_prefs.php
+++ b/classes/pref_prefs.php
@@ -52,7 +52,7 @@ class Pref_Prefs extends Protected_Handler {
if (db_num_rows($result) == 1) {
- $new_salt = substr(bin2hex(openssl_random_pseudo_bytes(125)), 0, 250);
+ $new_salt = substr(bin2hex(get_random_bytes(125)), 0, 250);
$new_pw_hash = encrypt_password($new_pw, $new_salt, true);
db_query($this->link, "UPDATE ttrss_users SET