summaryrefslogtreecommitdiffstats
path: root/lib/setup.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/setup.php')
-rw-r--r--lib/setup.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/setup.php b/lib/setup.php
index 6d8430c1036..16b9ec68df6 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -79,8 +79,7 @@ class OC_Setup {
}
//generate a random salt that is used to salt the local user passwords
- $random_bytes = openssl_random_pseudo_bytes(30, $cstrong);
- $salt = bin2hex($random_bytes);
+ $salt = OC_Util::generate_random_bytes(30);
OC_Config::setValue('passwordsalt', $salt);
//write the config file