diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-09-29 16:44:02 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-09-29 16:44:02 +0200 |
commit | ef57e9294b52b838f65c9896c6d85c2f8663c90b (patch) | |
tree | f7bc3d7724f4a9c81b01ecb2e8361991e7993b6f /lib/setup.php | |
parent | 992c2c9d4bc20db1dc8170dcc60dc4438dc55eb0 (diff) | |
download | nextcloud-server-ef57e9294b52b838f65c9896c6d85c2f8663c90b.tar.gz nextcloud-server-ef57e9294b52b838f65c9896c6d85c2f8663c90b.zip |
Fallback for systems without openssl
Diffstat (limited to 'lib/setup.php')
-rw-r--r-- | lib/setup.php | 3 |
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 |